public override bool Exists <T>(object id) { TableMapping mapping = TableMapper.GetTableMapping(this, typeof(T)); return(QueryScalar <int>(MappingProvider.CreateSelectCountCommand(mapping, id), null) > 0); }
public override bool Exists(object entity) { TableMapping mapping = TableMapper.GetTableMapping(this, entity.GetType()); return(QueryScalar <int>(MappingProvider.CreateSelectCountCommand(mapping, entity), null) > 0); }