mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 04:45:54 +08:00
Support virtual attributes
This commit is contained in:
parent
5caad95f13
commit
33e848f7e9
@ -107,8 +107,8 @@ namespace SqlSugar
|
||||
foreach (var property in result.Type.GetProperties())
|
||||
{
|
||||
EntityColumnInfo column = new EntityColumnInfo();
|
||||
var isVirtual = property.GetGetMethod().IsVirtual;
|
||||
if (isVirtual) continue;
|
||||
//var isVirtual = property.GetGetMethod().IsVirtual;
|
||||
//if (isVirtual) continue;
|
||||
var sugarColumn = property.GetCustomAttributes(typeof(SugarColumn), true)
|
||||
.Where(it => it is SugarColumn)
|
||||
.Select(it => (SugarColumn)it)
|
||||
|
Loading…
Reference in New Issue
Block a user