mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-27 03:27:02 +08:00
(schema change detection) actually, don't need hash to depend on types; the binding code only considers names, not types - generated code would be the same even if this doesn't change
This commit is contained in:
+1
-4
@@ -131,12 +131,9 @@ namespace Dapper
|
||||
{
|
||||
int colCount = reader.FieldCount, hash = colCount;
|
||||
for (int i = 0; i < colCount; i++)
|
||||
{
|
||||
{ // binding code is only interested in names - not types
|
||||
object tmp = reader.GetName(i);
|
||||
hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode());
|
||||
|
||||
reader.GetFieldType(i);
|
||||
hash = (hash * 31) + (tmp == null ? 0 : tmp.GetHashCode());
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user