I have this query:
public bool ProcessoEstaFinalizadoContabilmente(Int64
codigoDoProcesso) {
DetachedCriteria criteria = DetachedCriteria.For(typeof
(ProcessoBase));
criteria.SetProjection
(NHibernate.Criterion.Projections.Property
(PropertyNames.Processo.ProcessoBase.FinalizacaoContabil));
criteria.Add(Restrictions.Eq
(PropertyNames.Processo.ProcessoBase.Codigo, codigoDoProcesso));
criteria.SetResultTransformer(new
AliasToBeanResultTransformer(typeof (ProcessoBase)));
return Load(criteria).FinalizacaoContabil.HasValue;
}
now it's return a bool and i need to return a enum. How can i do?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---