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