Esempio n. 1
0
 public async Task ExecuteAsync()
 {
     RequestContext context = new RequestContext
     {
         Scope   = Scope,
         SqlId   = "Delete",
         Request = new { Id = 3 }
     };
     int exeNum = await _sqlMapper.ExecuteAsync(context);
 }
        public static Task <int> ExecuteAsync(this ISmartSqlMapper sqlMapper, string fullSqlId, dynamic @params)
        {
            EnsurePoint(ref fullSqlId);

            return(sqlMapper.ExecuteAsync(new RequestContext()
            {
                Scope = fullSqlId.Split('.')[0],
                SqlId = fullSqlId.Split('.')[1],
                Request = @params
            }));
        }
Esempio n. 3
0
 public Task <int> ExecuteAsync(RequestContext context)
 {
     return(MapperInstance.ExecuteAsync(context));
 }
Esempio n. 4
0
 public Task <int> ExecuteAsync(RequestContext context)
 {
     return(SqlMapper.ExecuteAsync(context));
 }