实体框架-包括多个属性级别
目前,这种方法:
public IEnumerable<ApplicationServer> GetAll(){ return this.Database.ApplicationServers .Include(x => x.ApplicationsWithOverrideGroup) .Include(x => x.ApplicationWithGroupToForceInstallList) .Include(x => x.CustomVariableGroups) .ToList();}
public class ApplicationWithOverrideVariableGroup : EntityBase{ public bool Enabled { get; set; } public Application Application { get; set; } public CustomVariableGroup CustomVariableGroup { get; set; }}
慕盖茨4494581