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)
-
0
You can publish
.Domain
Nuget package to your private Nuget server. -
0
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\
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 .
-
0
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?
-
0
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.
-
0
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.
-
0
@robb
I have a working version for the ABP, it is not perfect at a time but you can follow these steps
Copy and paste current entities and the appsettings.json from this place into your solution folder
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
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.
-
1
OK, thanks for the info. This looks like a good workaround.
-
0
Can I please get an update on the expected delivery date for the new feature referred to by @alper above?
-
0
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
-
0
Unfortunately not all of the developers have the solution at the same path. We're looking forward to the new feature.
-
0
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) -
0
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?
-
0
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