asp.net mvc - Is it possible use the like command in queryover nHibernate? How can I do this? -
i want search through parts of record, not in accurate records. in exemple search accurate records:
var v = nhsession.queryover<dados.models.personmodel>() .where(w=>w.name == "mary")) .list();
i can queryover or criteria?
the answer in the: whererestrictionon
. this
var v = nhsession .queryover<dados.models.personmodel>() //.where(w => w.name == "mary")) .whererestrictionon(w => w.name) .islike("mary", matchmode.start); .list();
the matchmode
enum decide put '%' generated sql statement
Comments
Post a Comment