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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -