Browse Source

Support for multi-db entity AOP

pull/40/head
sunkaixuan 1 year ago
parent
commit
91cccfd366
  1. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs

2
Src/Asp.NetCore2/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs

@ -104,7 +104,7 @@ namespace SqlSugar
null, Type.EmptyTypes, null));
generator.Emit(OpCodes.Stloc, result);
this.Context.InitMappingInfo(type);
var columnInfos = this.Context.EntityMaintenance.GetEntityInfo(type).Columns;
var columnInfos = this.Context.EntityMaintenance.GetEntityInfoWithAttr(type).Columns;
foreach (var columnInfo in columnInfos)
{
string fileName = columnInfo.DbColumnName ?? columnInfo.PropertyName;

Loading…
Cancel
Save