Giter Site home page Giter Site logo

alanwei43 / rulesengine Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 4.0 264 KB

Rules Engine is a . NET C# project that validates business logic by defining a bunch of rules for your data classes. Rules are defined using a fluent-interface (fluent validation) helper class, and not by decorating your existing objects with attributes, therefore de-coupling validation logic from data (or domain) classes. via http://rulesengine.codeplex.com/

Home Page: http://rulesengine.codeplex.com/

C# 99.95% ASP 0.05%

rulesengine's Introduction

RulesEngine

项目fork自 RulesEngine - athoma13.

Rules Engine is a . NET C# project that validates business logic by defining a bunch of rules for your data classes. Rules are defined using a fluent-interface (fluent validation) helper class, and not by decorating your existing objects with attributes, therefore de-coupling validation logic from data (or domain) classes. via RulesEngine

原项目地址

Nuget Address

###Install

Install-Package athoma13.RulesEngine

更新(2015-09-07)

退回至 2.1.x版本

rulesengine's People

Contributors

alanwei43 avatar allen-wei avatar

Stargazers

Alexis Daniel Hernandez Gamez avatar  avatar  avatar  avatar Nongzhsh avatar Mario avatar Seth B Spearman avatar Cyrille NDOUMBE avatar

Watchers

 avatar Jefferson Bien-Aime avatar Seth B Spearman avatar

rulesengine's Issues

Check Against Database

HI Allen-Wei,

This is a wonderful work you did and thank you. This is not an issue, but rather how check a value against a database. For example

rules.For()
.Setup(p=> p.MemberIdentification).MustEqual(GetIdentification(MemberIdentification)).WithMessage("This Identification doesn't exist");

The idea is to pass the value from p.MemberIdentification to the GetIdentification method.
If you need more clarification, let me know. Thanks

Adding ErrorCode

It will be nice to allow the user to add a ErrorCode too

for example with a method

WithMessage("Username Invalid").WithErrorCoe("ERR01")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.