I have to write a query in Fluent NHibernate for
Select * from Users where UserName = 'Abcd' AND Password = '123456'
How to create above query with session.CreateCriteria
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Fluent NHibernate is a alternative Mapping framework to the default HBM files (Hibernate Mapping)
NHibernate itself offers different Querying API’s like
For Criteria your query would be something along the lines of:
Query:
or
QueryOver: