Açık Kapalı

Guid Generator into DomainServic #6572


User avatar
0
nabass oluşturuldu

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 Cevap
  • User Avatar
    0
    maliming oluşturuldu
    Destek Takımı 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 Mart 25, 2024, 15:11