mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Code optimization
This commit is contained in:
parent
aaa6710896
commit
ae8e2706e3
@ -142,9 +142,9 @@ namespace SqlSugar
|
||||
{
|
||||
|
||||
}
|
||||
private void BindField(ILGenerator generator, LocalBuilder result, PropertyInfo propertyInfo, string fileName)
|
||||
private void BindField(ILGenerator generator, LocalBuilder result, PropertyInfo propertyInfo, string fieldName)
|
||||
{
|
||||
int i = DataRecord.GetOrdinal(fileName);
|
||||
int i = DataRecord.GetOrdinal(fieldName);
|
||||
Label endIfLabel = generator.DefineLabel();
|
||||
generator.Emit(OpCodes.Ldarg_0);
|
||||
generator.Emit(OpCodes.Ldc_I4, i);
|
||||
|
Loading…
Reference in New Issue
Block a user