Created
August 8, 2010 18:27
-
-
Save suryagaddipati/514379 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected IList<T> _FindByProperty(string propertyName , object value) | |
| { | |
| return _hibernateTemplate.Execute( | |
| session => session.CreateCriteria(typeof(T)). | |
| Add(Expression.Eq(propertyName, value)).List()) | |
| .Cast<T>().ToList(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment