public object Any(NamedConnection request)
 {
     using (var db = ConnectionFactory.OpenDbConnection("SqlServer"))
     {
         using (var cmd = db.SqlProc(
             "GetUserIdsFromEmailAddresses", new {request.EmailAddresses}))
         {
             var userIds = cmd.ConvertToList<int>();
             return userIds;
         }
     }
 }
示例#2
0
 public object Any(NamedConnection request)
 {
     using (var db = DbFactory.OpenDbConnection("SqlServer"))
     {
         using (var cmd = db.SqlProc(
                    "GetUserIdsFromEmailAddresses", new { request.EmailAddresses }))
         {
             var userIds = cmd.ConvertToList <int>();
             return(userIds);
         }
     }
 }