Example #1
0
        public void InitializeTest()
        {
            _queryProvider     = new QueryProvider <NamedFluentModel>();
            _conditionResolver = new ConditionResolverBase();

            ObjectMapperConfiguration.Use(_conditionResolver);
        }
Example #2
0
        static void Main(string[] args)
        {
            var queryExecutor = new DataConnector();

            var converterResolver = new ExtendedConverterResolver();
            var conditionResolver = new ExtendedConditionResolver();

            ObjectMapperConfiguration.Use(converterResolver);
            ObjectMapperConfiguration.Use(conditionResolver);

            var contactsRepository = new ContactsRepository(queryExecutor);

            var contacts  = contactsRepository.Where(c => c.Wiegth > 70).ToArray();
            var contact   = contactsRepository.FirstOrDefault(c => c.ID == 1187);
            var milenials = contactsRepository.Where(c => c.BirthDate > new DateTime(2000, 1, 1)).Take(20).OrderBy(c => c.Name).ToArray();
        }
        public void InitializeTest()
        {
            var conditionResolver = new ConditionResolverBase();

            ObjectMapperConfiguration.Use(conditionResolver);
        }