specification-pattern Questions
5
Solved
I'm getting the following error when trying to do a linq query:
LINQ to Entities does not recognize the method 'Boolean
IsCharityMatching(System.String, System.String)' method, and this
method...
Polky asked 31/8, 2011 at 15:38
1
Solved
I wrote two Specifications which return null if their parameter is null.
public static Specification<Prodotto> getProdottoByLineaSpec (String linea) {
if (linea != null) {
return (root, q...
Yalu asked 31/1, 2020 at 18:59
1
Solved
I use spring data and the JpaSpecificationExecutor::findAll method to fetch my models. How I could use query hints when calling this method?
The above source code works fine but I can't set QueryHi...
Carmody asked 30/1, 2018 at 11:53
3
Solved
I'm trying to apply Specification pattern to my validation logic. But I have some problems with async validation.
Let's say I have an entity AddRequest (has 2 string property FileName and Content) ...
Bouzoun asked 14/8, 2017 at 14:27
5
Solved
After reading a series of blogs (here and here) by Chris Missal from LosTechies.com on the Specification Pattern I am am really interested in finding more complete examples. Does anyone know ...
Conveyor asked 17/9, 2009 at 4:7
4
Solved
I'm just wondering if Specification pattern is pointless, given following example:
Say you want to check if a Customer has enough balance in his/her account, you would create a specification somet...
Torture asked 15/12, 2010 at 2:27
4
Solved
Wikipedia states that the Specification Pattern is where business logic can be recombined by chaining the business logic together using boolean logic. With respect to selecting filtering objects fr...
Mayer asked 21/9, 2009 at 11:28
2
I am checking out the "Promises/A+" Specification, but could not understand the following things:
On Section 1. Terminology,
1.1. "promise” is an object or function with a then method whose behav...
Ossie asked 3/4, 2015 at 15:38
1
Solved
I have picked up a project that uses the specification pattern, a pattern I have not used before, and I had to go and research the pattern. I have noticed it doesn't have OrderBy and Skip/Take func...
Ashjian asked 11/8, 2014 at 13:6
3
Solved
I'm currently setting up a new project, and I have run into a few things, where I need a little input.
This is what i'm considering:
I would like a generic repository
I don't want to return IQue...
Soubrette asked 8/2, 2010 at 12:6
4
Solved
I've been searching for quite some time for a good solution to the problems presented by the typical Repository pattern (growing list of methods for specialized queries, etc.. see: http://ayende.co...
Electrodynamometer asked 20/1, 2013 at 0:1
2
Solved
OK, we have to calculate eligibility and rates for insanely complicated insurance enrollment data. Policies can be available based on age, employment characteristics, shoe size, etc. People born be...
Bruis asked 26/4, 2012 at 15:12
2
Solved
So, I've looked at some posts about the Specification Pattern here, and haven't found an answer to this one yet.
My question is, in an n-layered architecture, where exactly should me Specification...
Quartan asked 22/11, 2011 at 21:29
4
Solved
I'm using specifications in this kind of form:
public static Expression<Func<User, bool>> IsSuperhero
{
get
{
return x => x.CanFly && x.CanShootLasersFromEyes;
}
}
Now...
Claire asked 8/11, 2011 at 11:48
1
Sometimes you need to define some business rules and the Specification pattern is a useful tool. For example:
public class CanBorrowBooksSpec : ISpecification<Customer>
{
public bool Satisf...
Autobiography asked 26/8, 2011 at 6:28
3
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 ext...
Degas asked 31/3, 2011 at 20:9
2
Solved
I'm doing some R&D work, and as such am exploring design patterns. I have recently been reading up on the Specification pattern and was referred to this great article.
I was intrigued by the s...
Munch asked 26/8, 2010 at 23:51
1
Solved
I have created a factory and a set of specifications to create and validate an aggregate root. Currently I have some tests for the factory that call the specifications on the product of the factory...
Elna asked 21/4, 2010 at 16:32
1
© 2022 - 2024 — McMap. All rights reserved.