mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
-
This commit is contained in:
@@ -58,7 +58,7 @@ namespace SqlSugar
|
|||||||
LocalBuilder result = generator.DeclareLocal(type);
|
LocalBuilder result = generator.DeclareLocal(type);
|
||||||
generator.Emit(OpCodes.Newobj, type.GetConstructor(Type.EmptyTypes));
|
generator.Emit(OpCodes.Newobj, type.GetConstructor(Type.EmptyTypes));
|
||||||
generator.Emit(OpCodes.Stloc, result);
|
generator.Emit(OpCodes.Stloc, result);
|
||||||
var mappingColumns = context.MappingColumns.Where(it => it.EntityName == type.Name);
|
var mappingColumns = context.MappingColumns.Where(it => it.EntityName.Equals(type.Name,StringComparison.CurrentCultureIgnoreCase));
|
||||||
for (int i = 0; i < dataRecord.FieldCount; i++)
|
for (int i = 0; i < dataRecord.FieldCount; i++)
|
||||||
{
|
{
|
||||||
string dbFieldName = dataRecord.GetName(i);
|
string dbFieldName = dataRecord.GetName(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user