Skip to content

Commit fcf93e7

Browse files
committed
Columns are case-insensitive
1 parent 4afbf40 commit fcf93e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DbTableInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ from property in type.GetProperties(BindingFlags.Instance | BindingFlags.NonPubl
4545
where !property.IsDefined(typeof(NotMappedAttribute)) && ((property.CanRead && property.CanWrite) || property.IsDefined(typeof(ColumnAttribute)))
4646
select new DbColumnInfo(property);
4747

48-
Columns = columns.ToFrozenDictionary(column => column.Name);
48+
Columns = columns.ToFrozenDictionary(column => column.Name, StringComparer.OrdinalIgnoreCase);
4949
IdentityColumn = Columns.Values.SingleOrDefault(column => column.IsIdentity) ?? (Columns.TryGetValue("Id", out var column) ? column : null);
5050
Name = table?.Name ?? type.Name;
5151
Schema = table?.Schema;

0 commit comments

Comments
 (0)