Giter Site home page Giter Site logo

domain's Introduction

Domain

iman.Domain is the library I've built for using in DDD and CQRS based projects using .NET and C#. It consist of primary building blocks for common domain-driven applications such as AggregateRoot and Entity.

Features

  • Support for AggregateRoot and Entity with or without identity
  • DomainEvent for raising business events in Aggregates
  • Repository and Service contracts for Domain models
  • ValueObject contract for implementing ValueObjects
  • Implementation of Mediator pattern
  • Support for Command, Query and Event and automatically matched them with their respective handlers
  • DomainException contract to define business exceptions

How to use

For using Domain building blocks, you just need to reference this library and inherit from the block you need to use in your application. But for using the Mediator, in order to implement CQRS pattern, you need to register iman.Domain services in the default .NET container, like this :

var services = new ServiceCollection();
services.AddDomainCore();

โš ๏ธ If you use any other DI container other than Microsoft.Extensions.DependencyInjection you must register iman.Domain services yourself.

Examples

For now, you can see the samples of the library in Tests project, I will add some samples very soon ;)

Contribution

Feel free to fork this project, commit your codes and send pull requests.

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.