public override int Delete(object entity) { TableMapping mapping = TableMapper.GetTableMapping(this, entity.GetType()); return(ExecuteNonQuery(MappingProvider.CreateDeleteCommand(mapping, entity), null)); }
public override int Delete(string tableName, object id) { TableMapping mapping = TableMapper.GetTableMapping(this, tableName); return(ExecuteNonQuery(MappingProvider.CreateDeleteCommand(mapping, id), null)); }
public override int Delete <T>(object id) { TableMapping mapping = TableMapper.GetTableMapping(this, typeof(T)); return(ExecuteNonQuery(MappingProvider.CreateDeleteCommand(mapping, id), null)); }