(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:
unknown
2012-06-11 12:54:20 +01:00
parent 7053c56fe0
commit 6101cab4bb
+1 -4
View File
@@ -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;
}