示例#1
0
        protected int UpdateImpl(DataSource ds, ColumnMode mode, DataColumn[] columns, DataWhereQueue ps = null)
        {
            UpdateBucket bucket = GetUpdateSql(ds, mode, columns, ps);

            return(ds.ExecuteNonQuery(ds.Provider.BuildUpdateSql(GetTableName(), bucket.Sets, bucket.Wheres), bucket.Parameters));
        }
示例#2
0
        protected static int UpdateImpl <T>(T instance, DataSource ds, ColumnMode mode, DataColumn[] columns, DataWhereQueue ps = null) where T : DbTable
        {
            UpdateBucket bucket = TDbTable <T> .GetUpdateSql(ds, instance, mode, columns, ps);

            return(ds.ExecuteNonQuery(ds.Provider.BuildUpdateSql(GetTableName <T>(), bucket.Sets, bucket.Wheres), bucket.Parameters));
        }