public object FindByPredicate(object criteria, T value, string predicate) { NewCriteria <T> newCriteria = NewCriteria <T> .CreateCriteria(predicate, criteria.ToString(), value); return(this.QueryData(newCriteria)); }
public object FindByID(int id) { NewCriteria <int> criteria = NewCriteria <int> .CreateCriteria("=", "CustomerID", id); return(this.QueryData(criteria)); }
public object FindBy(string criteria, params T[] value) { NewCriteria <T> newCriteria = NewCriteria <T> .CreateCriteria("=", criteria, value); return(this.QueryData(newCriteria)); }