Skip to content

Commit 199b8df

Browse files
authored
Merge pull request #559 from gameleon-dev/master
Use IsDefined to check for IgnoreAttribute
2 parents bcb8a60 + c4b4031 commit 199b8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SQLite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ from p in ti.DeclaredProperties
18861886

18871887
var cols = new List<Column> ();
18881888
foreach (var p in props) {
1889-
var ignore = p.CustomAttributes.Any(x => x.AttributeType == typeof(IgnoreAttribute));
1889+
var ignore = p.IsDefined(typeof(IgnoreAttribute),true);
18901890
if (p.CanWrite && !ignore) {
18911891
cols.Add (new Column (p, createFlags));
18921892
}

0 commit comments

Comments
 (0)