Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support EFCore HierarchyId datatype #491

Open
5 tasks
adamskt opened this issue Nov 8, 2024 · 0 comments
Open
5 tasks

Support EFCore HierarchyId datatype #491

adamskt opened this issue Nov 8, 2024 · 0 comments
Assignees

Comments

@adamskt
Copy link
Member

adamskt commented Nov 8, 2024

Current behavior:

  1. Create a new Coalesce project from the template
  2. Add the Microsoft.EntityFrameworkCore.SqlServer.HierarchyId package to the project
  3. Add a property to a model that uses the type HierarchyId
  4. Code generation fails with:
** Failure: Coalesce.TestProject.Data.Models.MyModel,MyModelHierarchyId: The target object for the property has no discernible display text. Add a [ListTextAttribute] to one of its properties.

Currently this behavior can be worked around by decorating the new property with the [InternalUse] property, but then the property will be ignored by Coalesce and not show up in generated DTOs or Typescript types.

Tasks

Preview Give feedback
@adamskt adamskt self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant