Exemple #1
0
 public static List <T> GetListByEntity <T>(string sql, T entity)
 {
     return(ToEntityByEmit.GetList <T>(ExecuteDatasetEntity(sql, entity).Tables[0]));
 }
Exemple #2
0
 public static List <T> GetListByParameters <T>(string sql, params object[] parameterList)
 {
     return(ToEntityByEmit.GetList <T>(ExecuteDataset(sql, parameterList).Tables[0]));
 }