Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
92799672fd
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/DbBindProvider/IDataReaderEntityBuilder.cs

2
Src/Asp.Net/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