Open Closed

Adding New Module to solution in Abp suite #6729


User avatar
0
infence created

Hello, I am adding ModulaA and ModuleB in to a solution. I want to use entity from Module B to A as Navigation, i am having issue The entity type 'ExtraPropertyDictionary' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.'

  • ABP Framework version: v8.0.4
  • UI Type: MVC
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

3 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, currently ABP Suite does nothing for an entity if it has extra properties on it. We have an internal issue for that (in backlog), but for now, you need to manually check the ef-core configuration and fix it accordingly. If you cannot fix it, then please share the OnModelCreating method. Also please share the entity metadata from Suite UI, so I can better assist you.

  • User Avatar
    0
    infence created

    Hi, Thanks for the reply. Let me explain in detail. I am having Module A and Module B. i want entity in module A to be used in Module B. i am generating via abp suite. can you please explain the process to do that. i also heard like creating a Shared module and use the shared module to communicate . can you please explain the process to do that. what i did was, i created Module abd added to solution. then i separately added entity to each module created via abpsuite. please let me know the process is correcr or not.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, Thanks for the reply. Let me explain in detail. I am having Module A and Module B. i want entity in module A to be used in Module B. i am generating via abp suite. can you please explain the process to do that. i also heard like creating a Shared module and use the shared module to communicate . can you please explain the process to do that. what i did was, i created Module abd added to solution. then i separately added entity to each module created via abpsuite. please let me know the process is correcr or not.

    The entity in "Module A" has extra properties I guess right? If so, ABP Suite generates all required code for you except the configurations for extra properties, you need to make some modifications. So, if you can share your project (with the code generation) with an email to support@abp.io with the question number, I can better assist you with the configurations.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09