Open Closed

Guid Generator into DomainServic #6572


User avatar
0
nabass created

hi sir i have a problem into my manager class in Domain Application according to your documentation you use DomainService which includes GuidGenerator.create to create Guid but what if my class is from (int) type like image below what should i do??

  • ABP Framework version: v8
  • UI Type:MVC
  • Database System: EF Core (SQL Server)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You don't need the Guid Generator if your key is not GUID.

    See https://learn.microsoft.com/en-us/ef/core/modeling/generated-properties?tabs=data-annotations https://learn.microsoft.com/en-us/ef/core/modeling/keys?tabs=data-annotations#value-generation

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11