打开 关闭

Guid Generator into DomainServic #6572


User avatar
0
nabass 创建

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 答案
  • User Avatar
    0
    maliming 创建
    支持团队 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 三月 25, 2024, 15:11