GithubHelp home page GithubHelp logo

vaughnvernon / iddd_samples_net Goto Github PK

View Code? Open in Web Editor NEW
913.0 109.0 251.0 369 KB

These are the sample Bounded Contexts for C#.NET from the book "Implementing Domain-Driven Design" by Vaughn Vernon: http://vaughnvernon.co/?page_id=168

License: Other

C# 100.00%

iddd_samples_net's Introduction

These are the sample Bounded Contexts for C#.NET from the book "Implementing Domain-Driven Design" by Vaughn Vernon: http://vaughnvernon.co/?page_id=168 

Java Samples: https://github.com/VaughnVernon/IDDD_Samples

NOTE: These are currently an early work in progress. It's
been pushed here so contributors can create pull requests,
etc.

Please don't complain unless you are willing to help ;)

Vaughn

iddd_samples_net's People

Contributors

dependabot[bot] avatar eulerfx avatar jimkropa avatar vaughnvernon avatar vlingo-java avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iddd_samples_net's Issues

Missing projects?

Hello Vaughn, great to see this code out here. One of the members in our study group found this and pointed us to it. Under IdentityAccessContext, DataModelTests.csproj and idd_identity_access_data_layer.csproj are not found.

Also, VisualDesignToolHook is missing.

I'm complaining, but I'm willing to help :) Any suggestions?

ProductCreated can be published for existed products

Hello guys

With current implementation we are publishing ProductCreated domain event in ctor for product.
If we will implement IProductRepository and use EF Core than this ctor will be called on read existed product from db.

Is ctor a good place to decide that new instance of product is created for new product?

Some ctor will be called when product will be readed from db or deserialized from json (let's for example we are working with json files as storage) and what ctor exactly depeneds on implementation of repository or ORM conventions.

PlanBacklogItem usage

Hi Vaughn,

I am trying to understand your implementation and got stuck in understanding where "PlanBackLogItem" is used. Can you please point out if you dont mind....

Cheers,
~Hari

Base class for entities

I don't understand why EntityWithCompositeId is a special case. For me, this code could be applied to all entities (with a composite or unique id).

LevelDB EventStore

  • Port the leveldb persistence bits.
  • Need LevelDB component for C# .NET. Using the LevelDB .NET component, port the following:
  • iddd_common basic Event Store support from Java to idiomatic C#:
    • com.saasovation.common.port.adapter.persistence.leveldb
  • iddd_common Event Sourcing Event Store support from Java to idiomatic C#:
    • com.saasovation.common.port.adapter.persistence.eventsourcing.leveldb

Started work here: https://github.com/yreynhout/IDDD_Samples_NET

EventSourcedAggregateRoot dynamic apply

   void When(IDomainEvent e)
    {
        (this as dynamic).Apply(e);
  }

    protected void Apply(IDomainEvent e)
    {
        this.mutatingEvents.Add(e);
        When(e);
    }

This code doesn't work, it generates an StackOverflow exception due to it's infinite recursion.

Unit tests in project structure

I would like to give my contribution to the project. But i'm little bit confused about current project structure. Where should be placed unit test projects due to actual project convention?

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.