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