The Board of Directors of the Ile-de-France Transport Union is expected to vote on a 2.5% rate increase this Wednesday. This measure will affect the portfolio of high school students and students. And their parents: the Imagine R card is expected to increase by almost € 10 at the start of September. On the board […]
The post Ile-de-France: the Imagine R card will increase by almost 10 € in September appeared first on Pop News.
A person died after shooting between two cars, in the night of Thursday to Friday in Gignac-la-Nerthe in the Bouches-du-Rhone. The two vehicles were burned. One person was killed in the night between Thursday and Friday when shooting between several vehicles on the highway west of Marseille, in the Bouches-du-Rhone. The firefighters said they saw […]
The post Bouches-du-Rhône: shots between vehicles on the highway, a dead appeared first on Pop News.
The level of fine particles reached this Saturday the alert threshold in the Paris region. The pollution figures are bad. This Saturday, the level of fine particles has crossed the alert threshold in Ile-de-France, according to Airparif, the body in charge of measuring air quality in the region. The pollutants involved are fine particles less […]
The post Pollution: alert threshold crossed in Ile-de-France and Lyon appeared first on Pop News.
При раскопках могил викингов археологи обнаружили на зубах некоторых черепов насечки или царапины явно искусственного происхождения. Поскольку доступные исторические источники молчат по данному поводу, возникла гипотеза, что эти знаки отражали статус их носителя, то есть играли роль лычек на погонах.
![image/png icon](http://blogs.pcmag.ru/sites/all/modules/filefield/icons/image-x-generic.png)
oral-b-5.png
![image/png icon](http://blogs.pcmag.ru/sites/all/modules/filefield/icons/image-x-generic.png)
oral-b-1.png
![image/png icon](http://blogs.pcmag.ru/sites/all/modules/filefield/icons/image-x-generic.png)
oral-b-2.png
![image/png icon](http://blogs.pcmag.ru/sites/all/modules/filefield/icons/image-x-generic.png)
oral-b-3.png
![image/png icon](http://blogs.pcmag.ru/sites/all/modules/filefield/icons/image-x-generic.png)
oral-b-4.png
читать дальше
В прошлой статье я привел пример фабрики для получения реализаций IQuery, но не объяснил механизм ее ...
В прошлой статье я привел пример фабрики для получения реализаций IQuery, но не объяснил механизм ее работы
![](https://habrastorage.org/files/0b6/bc8/2ac/0b6bc82acd4c43519049cbf6ae280257.jpg)
_queryFactory.GetQuery<Product>()
.Where(Product.ActiveRule)
.OrderBy(x => x.Id)
.Paged(0, 10) // получаем 10 продуктов для первой страницы
// Мы решили подключить полнотекстовый поиск и добавили ElasticSearch, не вопрос:
_queryFactory.GetQuery<Product, FullTextSpecification>()
.Where(new FullTextSpecification(«зонтик»))
.All()
// Или EF тормозит и мы решили переделать на хранимую процедуру и Dapper
_queryFactory.GetQuery<Product, DictionarySpecification, DapperQuery>()
.Where(new DictionarySpecification (someDirctionary))
.All()
В данном материале я хочу поделиться техникой регистрации необходимых компонентов сборки по соглашениям. Сейчас у меня под рукой кодовая база с другой реализацией CQRS, поэтому примеры будут отличаться. Это не принципиально: основная идея остается неизменной.
Допустим у вас есть такой интерфейс, где
ListParams – спецификация, приходящая с фронтенда
public interface IListOperation<TDto>
{
ListResult<TDto> List(ListParams listParam);
}
Задача
Избавить прикладных разработчиков от необходимости написания контроллеров, проекций и сервисов.
Решение под катом