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
Post a Comment