specification-pattern
Combining C# code and database code in a Specification
Sometimes you need to define some business rules and the Specification pattern is a useful tool. For example:[详细]
2023-03-31 11:24 分类:问答Dynamic Expression API: I can do a predicate, how to code an OrderBy Specification?
I figured out how to do a predicate from a string supplied by a client based on Dynamic Linq (this is wrapped in a Specification object):[详细]
2023-03-23 19:26 分类:问答How to create a collection of Expression<Func<T, TRelated>>?
I have a repository with the following method: IEnumerable<T> FindAll<TRelated>(Specification<T> specification,[详细]
2023-03-16 06:04 分类:问答Using the speicifcation pattern as a validation layer?
I have only seen the specification pattern used to retrieve data, but not to validate it. A colleague suggested I can use the specification pattern to “validate” an object so it does not become inva[详细]
2023-02-25 21:17 分类:问答Specification pattern vs Extension method?
I am trying to grasp specification pattern and i get confused a little about it. I really couldn\'t found it helpful for my specific requirements. I want to know that what is problem if i prefer exten[详细]
2023-02-20 22:46 分类:问答Persisting specifications
I\'m building a system where a user can subsribe for items and get periodically notifications for new items. Users should define what items they want by filtering on certain properties.[详细]
2023-02-15 09:06 分类:问答How to implement isGeneralizationOf with the composite specification pattern?
I am trying to implement the composite specification pattern, as per the Specifications Document by Fowler and Evans.[详细]
2023-02-10 07:36 分类:问答Adding paging and filtering to typical Linq Specification pattern?
I have an ASP.NET MVC2 app that has heavy use of grids. I\'d like to see if there is a way to add efficient paging and filtering to the typical Specification pattern.[详细]
2023-01-31 19:09 分类:问答Specification Pattern in a separate Project?
I\'m planning to use \"Specification pattern\" to validate my domain objects in my solution. Where is the \"correct\" place to put the \"specification\" classes in my solution? Should I create a 开发[详细]
2023-01-30 09:53 分类:问答Is Specification Pattern Pointless?
I\'m j开发者_运维百科ust wondering if Specification pattern is pointless, given following example:[详细]
2023-01-30 09:48 分类:问答