0
想法尝试使用Petapoco.Fetch,其中成员“content”是c#对象。在使用Petapoco中的访存时排除成员
“内容”成员是我存储在缓存中的byte []成员,并且要从数据库中特别检索。
所以:
SQL = "select * table.FundDocument";
List<FundDocument> fundDocuments = new List<FundDocument>();
fundDocuments = database.Fetch<FundDocument>(SQL)
.IgnoreORExcept(FundDocument.content = GetDocumentFromCache(id));
所以petapoco对象将取以外的所有成员 “内容”,这将取从所述功能GetDocumentFromCache();
这可能吗?