Skip to content

Commit c903a3d

Browse files
committed
Use a case insensitive dictionary to store the table columns
1 parent 5b19e8b commit c903a3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Sql/Reflection/TableInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public sealed class TableInfo(Type type) {
1717
.GetProperties(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public)
1818
.Where(property => !property.IsDefined(typeof(NotMappedAttribute)) && ((property.CanRead && property.CanWrite) || property.IsDefined(typeof(ColumnAttribute))))
1919
.Select(property => new ColumnInfo(property))
20-
.ToFrozenDictionary(column => column.Name);
20+
.ToFrozenDictionary(column => column.Name, StringComparer.OrdinalIgnoreCase);
2121

2222
/// <summary>
2323
/// The single identity column, if applicable.

0 commit comments

Comments
 (0)