public TEntity SingleSelectFilter <TEntity>(object whereClauseParams) where TEntity : DbObjectBase { IDapperQueryPartsGenerator <TEntity> instance = new DapperQueryPartsGenerator <TEntity>(); return(Connection.QuerySingle <TEntity>(instance.GenerateSelect(whereClauseParams), whereClauseParams, transaction: Transaction)); }
public IEnumerable <TEntity> Filter <TEntity>(object whereClauseParams) where TEntity : DbObjectBase { IDapperQueryPartsGenerator <TEntity> instance = new DapperQueryPartsGenerator <TEntity>(); return(Connection.Query <TEntity>(instance.GenerateSelect(whereClauseParams), whereClauseParams, transaction: Transaction).Where(q => q.IsDeleted == false)); }