My criteria looks like:
Session.CreateCriteria(typeof(User))
.Add(Expression.Eq("IsActive", 1);
Do I put 1 or True for the IsActive boolean check? (non seem to work?)
what are my options?
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.
How is your DB defined?
I use this code:
customer.Add(new EqExpression("Deleted", false));To access a field in my database where the “Deleted” field is defined as a bit that does not allow null. (This is a SQL 2005 DB)