FAQ Database Discussion Community
c#,design-patterns,cqrs,command-query-separation
I am separating my query and command on service side like this: public class ProductCommandService{ void AddProduct(Product product); } public interface ProductQueryService{ Product GetProduct(Guid id); Product[] GetAllProducts(); } Command Query Separation accepts that a method should change state or return a result. There is no problem. public class ProductController: ApiController{...
c#,wpf,mvvm,solid-principles,command-query-separation
I have been writing all my MVVM application with basic design pattern generally mentioned in MVVM examples available online. The pattern that I am following is described below: Model This section include DTO classes with their properties and Interfaces IDataService and like: public class Employee { public string EmployeeName {...