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