Beispiel #1
0
        public override int Count(Type type, IEnumerable <ICriterion> criteria, params QueryOption[] options)
        {
            var queryBuilder = new SqlQueryBuilder <Domain.ContactContactType>(criteria, options, PropertyColumnMappings, GetSubQueryMappings);

            return((int)ExecuteScalar(queryBuilder.GenerateCountQuery("[ContactContactTypes] AS C"), System.Data.CommandType.Text, GenerateParameters(queryBuilder.Parameters)));
        }