Пример #1
0
 public static T GetEntityByEntity <T>(string sql, T entity)
 {
     return(ToEntityByEmit.GetEntity <T>(ExecuteDatasetEntity(sql, entity).Tables[0]));
 }
Пример #2
0
 public static T GetEntityByParameters <T>(string sql, params object[] parameterList)
 {
     return(ToEntityByEmit.GetEntity <T>(ExecuteDataset(sql, parameterList).Tables[0]));
 }