Giter Site home page Giter Site logo

stronglytypedid's People

Contributors

lenfon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mr-badger

stronglytypedid's Issues

Bug: EfCoreCodeGenerator and SwaggerCodeGenerator only apply to StronglyTypedIds within same assembly

Issue Report

Description

The created record or a record struct must be within the same project where the StronglyTypedIds.ApplyTo(..) is called else it won't be mapped/converted.

Steps to Reproduce

  1. Create a WebUI project, Infrastructure Project and Domain Project
  2. Add a StronglyTypedId to the domain project
  3. Call StronglyTypedIds.ApplyTo(configurationBuilder) within your Infrastructure project context.
  4. Call StronglyTypedIds.ApplyTo(options) within your swaggerGen options.

Expected Behavior

The StronglyTypedId has Conversion within the EFCore ModelConfigurationBuilder ApplyTo method
The StronglyTypedId is mapped to the correct format within the SwaggerGen SwaggerGenOptions ApplyTo method

Actual Behavior

The StronglyTypedId has no conversion and ain't mapped

Screenshots

In this example I have 3 ProjectId types: ProjectId is in the domain project, ProjectId2 is in the EFCore project, ProjectId3 is within the WebUI project.
image
image

Suggestion: Add support for more frameworks(6 & 7)

I think most of the features within this library have been supported since dotnet 6.
At least that's when record structs where added too the language.
I don't see much in the way of also building for dotnet 6 and 7.

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.