/// <summary>
        /// Returns number of entities after filterBucket is applied.
        /// If you need number of all entities send null as filterBucket.
        /// </summary>
        public static int GetNumberOfEntities(DataAccessAdapterBase adapter,
                                              IRelationPredicateBucket filterBucket)
        {
            EntityCollection entityCollection = new EntityCollection(new PartnerEntityFactory());

            return(adapter.GetDbCount(entityCollection, filterBucket));
        }
Exemple #2
0
        /// <summary>
        /// Returns number of entities after filterBucket is applied.
        /// If you need number of all entities send null as filterBucket.
        /// </summary>
        public static int GetNumberOfEntities(DataAccessAdapterBase adapter, 
			IRelationPredicateBucket filterBucket)
        {
            EntityCollection entityCollection = new EntityCollection(new ErrorEntityFactory());
            return adapter.GetDbCount(entityCollection, filterBucket);
        }