exclude member while using Fetch in Petapoco -
thinking of trying use petapoco.fetch member "content" c# object.
"content" member byte[] member store in cache og want retrieve specially .. not database.
so:
sql = "select * table.funddocument"; list<funddocument> funddocuments = new list<funddocument>(); funddocuments = database.fetch<funddocument>(sql) .ignoreorexcept(funddocument.content = getdocumentfromcache(id));
so petapoco object fetch except member "content", fetch function getdocumentfromcache();
is possible?
you can use explicitcolumns
in poco , exclude property being retrieved or can name different, petapoco don't retrieve it.
Comments
Post a Comment