Beispiel #1
0
 public User(IMultipleHandler <BaseListResult> handler)
 {
     _handler = handler;
 }
Beispiel #2
0
 public static T QueryMultiple <T>(string sql, object param, CommandType commandType = CommandType.Text, IMultipleHandler <T> handler = null)
 {
     using (var connection = getConnection())
     {
         using (var multi = connection.QueryMultiple(sql, param, commandType: commandType))
         {
             if (handler == null)
             {
                 return(default(T));
             }
             return(handler.Handle(multi));
         }
     }
 }