NHibernate conditional computed field (Hibernate can help too) -


i need create computed fields in nhibernate, in these fields must use conditional expressions. mysql example:

if(now() < addtime(?1, ?2), 'true', 'false') 

the computed field stored in database, , when program needs field, program gets database, uses create projection , finally, nhibernate proceeds execution of full query.

how create computed field containing functions nhibernate instead of creating field manually each dialect (microsoft sql, postgresql or mysql)?


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -