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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -