Ejemplo n.º 1
0
        public async Task <int> DeleteAsync(T model)
        {
            SqlProvider.FormatDelete();
            //设置参数
            DynamicParameters param = new DynamicParameters();

            SqlProvider.SqlString = $"{SqlProvider.SqlString} {SqlProvider.GetIdentityWhere(model, param)}";
            return(await DbCon.ExecuteAsync(SqlProvider.SqlString, param, isExcludeUnitOfWork : SqlProvider.IsExcludeUnitOfWork));
        }