Using LINQ Expressions to Centralize Logic

Queries could appear multiple times in our application. How to reuse the code?

Changhui Xu
codeburst
Published in
3 min readSep 3, 2019

--

Photo by Artem Sapegin on Unsplash

When we talk about business logic, we mostly refer to the rules that determine how data should be created, stored and updated/deleted. We understand that we need to centralize logic for model states mutations and for validating commands and model integrity. We…

--

--

Lead Application Developer. MBA. I write blogs about .NET, Angular, JavaScript/TypeScript, Docker, AWS, DDD, and many others.