mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 23:13:42 +08:00
Support emit new class(x)
This commit is contained in:
parent
211fd2c21d
commit
25733d588d
@ -100,7 +100,8 @@ namespace SqlSugar
|
||||
new Type[] { typeof(IDataRecord) }, type, true);
|
||||
ILGenerator generator = method.GetILGenerator();
|
||||
LocalBuilder result = generator.DeclareLocal(type);
|
||||
generator.Emit(OpCodes.Newobj, type.GetConstructor(Type.EmptyTypes));
|
||||
generator.Emit(OpCodes.Newobj, type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
|
||||
null, Type.EmptyTypes, null));
|
||||
generator.Emit(OpCodes.Stloc, result);
|
||||
this.Context.InitMappingInfo(type);
|
||||
var columnInfos = this.Context.EntityMaintenance.GetEntityInfo(type).Columns;
|
||||
|
Loading…
Reference in New Issue
Block a user