Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 628f1fc

Browse files
committed
compare against non-alias field
1 parent 2aa4b48 commit 628f1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.OrmLite/ModelDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public FieldDefinition GetFieldDefinition(string fieldName)
138138
}
139139
foreach (var f in FieldDefinitionsArray)
140140
{
141-
if (f.FieldName == fieldName)
141+
if (f.Name == fieldName)
142142
return f;
143143
}
144144
foreach (var f in FieldDefinitionsWithAliases)
@@ -148,7 +148,7 @@ public FieldDefinition GetFieldDefinition(string fieldName)
148148
}
149149
foreach (var f in FieldDefinitionsArray)
150150
{
151-
if (string.Equals(f.FieldName, fieldName, StringComparison.OrdinalIgnoreCase))
151+
if (string.Equals(f.Name, fieldName, StringComparison.OrdinalIgnoreCase))
152152
return f;
153153
}
154154
}

0 commit comments

Comments
 (0)