ORM廷遲載入

2021-06-11 03:05:31 字數 611 閱讀 8274

#region 廷遲載入

///

/// 廷遲載入資料訪問物件

///

protected dictionarydelayloadobjectlist = new dictionary();

///

/// 廷遲載入資料訪問物件

///

public void adddelayloadobject(string key, dynamic dalobject)

else

}public void delayloadlist(string propertyname, object queryvalue, string fkpropertyname) where t : basemodel

);ilistlst = this.delayloadobjectlist[propertyname].getentitylist(0, 0, queryexpressionlist, null);

piself.setvalue(this, lst, null);

this.delayloadobjectlist.remove(propertyname);}}

}}}}

#endregion