Giter Site home page Giter Site logo

thearchitectdev / architect.domainmodeling Goto Github PK

View Code? Open in Web Editor NEW
59.0 3.0 5.0 344 KB

A complete Domain-Driven Design (DDD) toolset for implementing domain models, including base types and source generators.

Home Page: https://www.nuget.org/packages/Architect.DomainModeling/

License: GNU Lesser General Public License v3.0

C# 100.00%
csharp-sourcegenerator ddd domain-driven-design domain-modeling entities entity value-object value-objects domain generator

architect.domainmodeling's People

Contributors

timovzl 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

Watchers

 avatar  avatar  avatar

architect.domainmodeling's Issues

Code generator for abstract classes derived from Entity<TId, TIdPrimitive>

Hi @Timovzl

I use a base class for my entities to contain some common properties, inheriting from Entity<TId, TIdPrimitive>. Unfortunately, when doing so, custom ID type does not get generated. Would this be possible in future to extend code generation functionality, so it generates custom ID types for entities that inherit from Entity<TId, TIdPrimitive> through the other base class?

Thank you!

Eugene

ValueObjectGenerator NullReferenceException on VS 2022 17.6.4

Hi @TheArchitectDev

Thank you so much for such a great library! For some reason, I'm getting NullReferenceException when using ValueObjectGenerator:

Warning	CS8785	Generator 'ValueObjectGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'NullReferenceException' with message 'Object reference not set to an instance of an object.'	Domain	D:\Dev\Projects\Solution\Src\Domain\Domain.csproj	1	Active	Generator threw the following exception:
'System.NullReferenceException: Object reference not set to an instance of an object.
   at Architect.DomainModeling.Generator.ValueObjectGenerator.TransformSyntaxNode(GeneratorSyntaxContext context, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.UserFunctionExtensions.<>c__DisplayClass0_0`2.<WrapUserFunction>b__0(TInput input, CancellationToken token)'.

Do you have an idea what could be the cause of the problem?

Thank you!

.NET version: 7.0
Visual Studio 2022 version: 17.6.4

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.