in my application layer im querying my repositories with lambda
expressions, for example, customerRepo.FindAll(c => c.IsEnabled)
then inside the repository, im using QueryOver API
but now, i want to query something like this customerRepo.FindAll(c =>
c.Name.Contains("Charles"))
NH throws an exception
then, i read that i have to use IsLike extension because, Contains is
not implemented
but if i want to do customerRepo.FindAll(c =>
c.Name.IsLike("Charles"))
i have to reference my application layer to NHibernate.dll, this way
my layers and components gets highly coupled
is there another way to match string parts with lambda expressions?
i think i could implement this query inside my repository method and
just call
customerRepo.FindByName("Charles")
but i like the idea of querying freely from my application layer
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en.