Open Closed

Exporting Entities Created in ABP Suite #199


User avatar
0
roop.yekollu@atlasair.com created

Hi,

How can I share the entities I have created using ABP Suite with other developers.

  • ABP Framework version: v2.8.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

13 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can publish .Domain Nuget package to your private Nuget server.

  • User Avatar
    0
    alper created
    Support Team Director

    Hi Roop,

    That feature is on the roadmap. We'll enable to export/import entities in a solution. But for now you can simply access the entites from this directory.

    %UserProfile%\.abp\suite\solutions\{solution-id}\entities\
    

    You can see the solution id

    And your friend can save the entities in the same folder. But it might be a good idea to store entities in the solution folder itself .

  • User Avatar
    0
    roop.yekollu@atlasair.com created

    Thanks @alper. I found the json files in my local machine. I like the idea of keeping them along with soure code. is there a way to change the default path for these json files?

  • User Avatar
    0
    alper created
    Support Team Director

    so this will be added as a new feature in the future releases. there'll be probably a setting in ABP Suite for your entity locations. you can set it to your root directory of the solution so that it'll be included in your source-controller system.

  • User Avatar
    0
    robb created

    This is a vitally-needed feature. It is too awkward to "share" entities by digging around in the file system. They need to be able to be saved in version control and thus need to be inside the solution folder.

  • User Avatar
    0
    camping89@gmail.com created

    @robb

    I have a working version for the ABP, it is not perfect at a time but you can follow these steps

    1. Copy and paste current entities and the appsettings.json from this place into your solution folder

    2. Change the ABP Suite path to use your solution entities at C:\Users\Admin.dotnet\tools.store\volo.abp.suite\3.0.5\volo.abp.suite\3.0.5\tools\netcoreapp3.1\any

    3. Restart the abp suite tool. Thanks to step #2, abp suite will use config from the path in step #2.

    Now for other devs, you can push the entities, and the new appsettings.json. Each machine will have different ABP Suite path so consider to update/check the path before start the suite. This means that other machines will need to update the path relevantly. For my case, we use same solution folder for all machines/devs, so we can just push and pull the changes from source control only.

  • User Avatar
    1
    robb created

    OK, thanks for the info. This looks like a good workaround.

  • User Avatar
    0
    robb created

    Can I please get an update on the expected delivery date for the new feature referred to by @alper above?

  • User Avatar
    0
    alper created
    Support Team Director

    robb@designitcorp.ca check out https://support.abp.io/QA/Questions/625/How-to-include-Suite-entities-in-my-source-control-system#answer-1287c0f9-c787-9953-f091-39f9374847bc

  • User Avatar
    0
    robb created

    Unfortunately not all of the developers have the solution at the same path. We're looking forward to the new feature.

  • User Avatar
    0
    alper created
    Support Team Director

    robb@designitcorp.ca it doesn't matter where the solution is located. the entites must be inside the root folder of the solution (in .suite/entities folder)

  • User Avatar
    0
    LeonTee created

    Hi,

    I need to export the Entities as well. From this thread, it mentioned the export function will be available on version 4.0.0, but I am unable to find the function in the Suite. Can help?

  • User Avatar
    0
    alper created
    Support Team Director

    hi, I didn't mention a release date for exporting entities feature. I just say it's in the roadmap, maybe v4.1... for the workaround go to the following directory to get your entity json files.

    %UserProfile%\.abp\suite\solutions\{solution-id}\entities\
    

    if you have created a 4.0 project, the entities will be under your solution's root directory

    YourSolution\Acme.Blazor1126\aspnet-core\.suite\entities
    

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