Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 public Task UpdateAsync(DbContext context, T entity, bool skipSelect = false)
 {
     return(UpdateBuilder.DoUpdateAsync(_info, context, _sqlColumns, _identityColumn, entity, skipSelect));
 }
Exemplo n.º 4
0
 public void Update(DbContext context, T entity, bool skipSelect = false)
 {
     UpdateBuilder.DoUpdate(_info, context, _sqlColumns, _identityColumn, entity, skipSelect);
 }
Exemplo n.º 5
0
 public void Update(DbContext context, T entity)
 {
     UpdateBuilder.DoUpdate(_info, context, _sqlColumns, _identityColumn, entity);
 }