Exemplo n.º 1
0
        public override int UpdateManyByWhere <T>(string where, string updateFields, IEnumerable <T> models)
        {
            var    sqls = GetDapperSqls(typeof(T));
            string sql  = DapperCommon.BuilderUpdateByWhereSql(sqls, where, updateFields, "[", "]");

            return(Execute(sql, models));
        }
Exemplo n.º 2
0
        public override int UpdateByWhere <T>(string where, string updateFields, T model)
        {
            var    sqls = GetDapperSqls(typeof(T));
            string sql  = DapperCommon.BuilderUpdateByWhereSql(sqls, where, updateFields, "`", "`");

            return(Execute(sql, model));
        }