navozenko / linqspecs Goto Github PK
View Code? Open in Web Editor NEWA toolset for use the specification pattern in LINQ queries.
License: Microsoft Public License
A toolset for use the specification pattern in LINQ queries.
License: Microsoft Public License
i can't use & with AdHocSpecification and AdHocSpecification
There is an idea to add .NET Standard support to allow using LinqSpecs on the .NET Core. Unfortunately, the existing LinqSpecs code is not fully compatible with .NET Standard versions 1.0-1.6 because there is no SerializableAttribute in .NET Standard 1.0-1.6. All specifications in LinqSpecs are marked with the [Serializable] attribute and support binary serialization. Is it really necessary? Should we remove the [Serializable] attribute for compatibility with .NET Standard?
This error ocours always when I try to debug some class that inherit from Specificantion
My Repo with Tests:
https://github.com/taigosantos/dotnet-core-architecture/tree/master/provas-de-conceito/poc-specification-pattern
I've created a custom spec class similar to the "CustomerFromCountrySpec" in the README.md. When I create my custom class, within a second or two I get a stack overflow.
Here's my class:
public class CustomSpec: Specification<string>
{
public string Name { get; set; }
public CustomSpec(string name)
{
Name = name;
}
public override Expression<Func<string, bool>> ToExpression()
{
return s => s == Name;
}
}
Here's my test method
[Test]
public void CustomClassShouldntStackOverflow()
{
var s = new CustomSpec("Jose");
Assert.True(true); //Put a break point here and let it set for 5 seconds, you'll stack overflow.
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.