class A { public int Id {get;set;} ... ... public Class2 class2 {get;set;} public List< Another > Bs{get;set;} } class Class2 { public int Id{get;set;} } class Another { public int Id {get;set;} }
public IQueryable< T > Select< T >(string condition,object value) { var list=FindAll< T >();//return list of T from database var result=list.Where(string.Format("{0} = @0",condition),value); } result=Select< A >("class2.Id",1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)