public override int UpdateFieldsExcluded <T>(object entity, params string[] exclusiveFields) { TableMapping mapping = TableMapper.GetTableMapping(this, typeof(T)); return(ExecuteNonQuery(MappingProvider.CreateUpdateCommand(mapping, entity, exclusiveFields, false), null)); }
public override int UpdateFields(object entity, params string[] inclusiveFields) { TableMapping mapping = TableMapper.GetTableMapping(this, entity.GetType()); return(ExecuteNonQuery(MappingProvider.CreateUpdateCommand(mapping, entity, inclusiveFields, true), null)); }
public override int Update(string tableName, object entity) { TableMapping mapping = TableMapper.GetTableMapping(this, tableName); return(ExecuteNonQuery(MappingProvider.CreateUpdateCommand(mapping, entity), null)); }
public override int UpdateFields <T>(IDictionary <string, object> fields) { TableMapping mapping = TableMapper.GetTableMapping(this, typeof(T)); return(ExecuteNonQuery(MappingProvider.CreateUpdateCommand(mapping, fields), null)); }
public override int Update <T>(object entity) { TableMapping mapping = TableMapper.GetTableMapping(this, typeof(T)); return(ExecuteNonQuery(MappingProvider.CreateUpdateCommand(mapping, entity), null)); }