I have this two functions:
public static List<Language> GetLanguages()
>
> {
>
> return new List<Language>(languageRepository.FindAll(Order.Asc("Name"
> )));
>
> }
>
> public static Language GetLanguageById(Guid id)
>
> {
>
> DetachedCriteria criteria = DetachedCriteria.For<Language>();
>
> criteria.Add(Expression.Eq("Id",id));
>
> return languageRepository.FindOne(criteria);
>
> }
>
I need to upgrade it to the new version.
FindAll now doesn't accept only an order object but needs an array of
critirias. Why?
FindOne also complains that it can't accept a DetachedCritiria, why?
What are restrictions and how they are different from Critirias?
--
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.