Esempio n. 1
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();
        }