Aperto Chiuso

Guid Generator into DomainServic #6572


User avatar
0
nabass creato

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 risposte
  • User Avatar
    0
    maliming creato
    Team di supporto 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 marzo 25, 2024, 15:11