예제 #1
0
        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));
        }
예제 #2
0
        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));
        }