Giter Club home page Giter Club logo

efcore.genericbizrunner's Introduction

EfCore.GenericBizRunner

EfCore.GenericBizRunner (shortened to GenericBizRunner) is a framework to help build and run business logic when you are using Entity Framework Core for database accesses. Its aim is to totally isolate the business logic from other parts of the application, especially the user presentation/UI layers.

EfCore.GenericBizRunner is available as a NuGet package, and on the EfCore.GenericBizRunner GitHub repo. It is an open-source project under the MIT licence.

It provides the following features:

  • A standard pattern for writing business logic, including helper classes.
  • An anti-corruption layer feature that act as a barrier between the business logic and the user presentation/UI layers.
  • The BizRunner handles the call to EF Core's SaveChanges, with optional validation.
  • A service, known as a BizRunner, that runs your business logic.
  • Very good use of Dependency Injection (DI), making calls to business logic very easy.

The article A library to run your business logic when using Entity Framework Core gives a good overview about the library, and there is there is good documentation in the project's Wiki. Alos, this project contains a runnable ASP.NET Core application with two business logic examples in it.

Why did I write this library?

I have built quite a few applications that contain business logic, some of it quite complex - things like optimisiers and pricing engines to name but a few. Business logic can be a real challenge, and over the years I have perfected a architecture pattern that isolates the business logic so its easier to write and manage - see this article and chapter 4 of my book, Entity Framework in Action.

Having perfected my pattern for handling business logic, then the next step was to automate the common parts of the pattern into a library. Which is where the EfCore.GenericBizRunner library came from.

More information on the business logic pattern and library

The following links start with general descriptions and get deeper towards the end.

  • This article, which describes my business pattern.
  • Chapter 4 of my book, which covers building of business logic using this pattern.
  • This article that describes the EfCore.GenericBizAction library with examples.
  • Project's Wiki, which has a quick start guide and deeper documentation.
  • Clone this repo, and run the ASP.NET Core application in it to see the business logic in action.
  • Read the example code, in this repo.

efcore.genericbizrunner's People

Contributors

anapher avatar jonpsmith avatar

Watchers

 avatar  avatar

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.