예제 #1
0
        public static void DoUpdate(IFullTableName fullTableName, DbContext context, ColumnInfo[] sqlColumns,
                                    ColumnInfo identityColumn, object entity)
        {
            var a = new UpdateBuilder
            {
                FullTableName  = fullTableName,
                SqlColumns     = sqlColumns,
                Entity         = entity,
                IdentityColumn = identityColumn
            };

            a.Update(context);
        }
예제 #2
0
        public static Task DoUpdateAsync(IFullTableName fullTableName, DbContext context, ColumnInfo[] sqlColumns,
                                         ColumnInfo identityColumn, object entity, bool skipSelect = false)
        {
            var a = new UpdateBuilder
            {
                FullTableName  = fullTableName,
                SqlColumns     = sqlColumns,
                Entity         = entity,
                IdentityColumn = identityColumn
            };

            return(a.UpdateAsync(context, skipSelect));
        }
예제 #3
0
 public Task UpdateAsync(DbContext context, T entity, bool skipSelect = false)
 {
     return(UpdateBuilder.DoUpdateAsync(_info, context, _sqlColumns, _identityColumn, entity, skipSelect));
 }
예제 #4
0
 public void Update(DbContext context, T entity, bool skipSelect = false)
 {
     UpdateBuilder.DoUpdate(_info, context, _sqlColumns, _identityColumn, entity, skipSelect);
 }
예제 #5
0
 public void Update(DbContext context, T entity)
 {
     UpdateBuilder.DoUpdate(_info, context, _sqlColumns, _identityColumn, entity);
 }