mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
1b9321a60e
commit
a29e4b9699
@ -174,6 +174,11 @@ namespace SqlSugar
|
||||
}
|
||||
public string GetPropertyName(string dbColumnName, Type entityType)
|
||||
{
|
||||
var columnInfo = this.Context.EntityMaintenance.GetEntityInfo(entityType).Columns.FirstOrDefault(it => it.DbColumnName.EqualCase(dbColumnName));
|
||||
if (columnInfo != null)
|
||||
{
|
||||
return columnInfo.PropertyName;
|
||||
}
|
||||
var typeName = entityType.Name;
|
||||
if (this.Context.MappingColumns == null || this.Context.MappingColumns.Count == 0) return dbColumnName;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user