Activities of "uyarbtrlp"

Okay, I have another question. Why it is working when I create a new unit of work scope?

I just want to add aggregate root-value object relation as batch. So you can see that inside the profile list, I have multiple profiles and its edge definitions. I expect that when I send the request, it should create 3 edge definitions record for each profile (total 9 edge definition records), because I have the FK-PK relationship between Profile and EdgeDefinition with OwnsMany relation which can be used for value objects. In logs, somehow it changes the foreign key property to latest one, but I expect that it should create different edge definition object not changing the FK. And also, when I try to save it immediately with InsertAsync method, I got an exception It seems to me there is a transactional issue. I expect that it should create one profile and 3 edge definitions each loop. Should we expect that value object can be changed like that while sending the aggregate root as batch? I expect that it should create aggregate - value object relation without changing anything.

It should create 3 edge definitions for each profile. You should see 9 different edge definitions. I can only see the edge definitions which are belong to one profile which is starting with Guid “BCF”. If you try the working code, you see the difference

I've sent it

  • ABP Framework version: v8.1.3
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Module project (Separated Deployment & Databases Scenario): yes

Hello,

I have an aggregate root - value object relationship on my module. As you can see there are profile aggregate root and edge definition value object Relationship has been described in EFCore like this. I use owns many relationship between Profile and EdgeDefinition. I have a method that creates multiple profiles according to input that is sent in ProfileAppService. When I create two profiles, two entitites, I see that only one edge information on my local db and it is assigned to latest profile. So I examine the EF core logs it seems that InsertMany create a single edge definition and updates the FK with the latest one. It is a really strange behavior because I expect that it should create single value object for each profile. To give an example. I sent two ids for profile and it creates two profiles, but I can only see the latest one on edge definition table. Since it is a long log file I could not send it. But you can see that it changes the ProfileId value while inserting it. 2024-06-05 12:03:44.113 +03:00 [DBG] The foreign key property 'EdgeDefinition.ProfileId' was detected as changed from '"dd9c0686-7486-c122-0940-3a12f9cb4247"' to '"273b1940-0173-8d1d-3bc0-3a12f9d07589"' for entity with key '{Id: 372}'. I just want to see that if it works InsertAsync method with autosave but there is same issue. It seems it could not save the transaction. The only thing works when we create a new unit of work. It basically creates edge definition for each profile. It seems it is a really strange problem even though we want to save it with autosave. I just want to use InsertMany method but it does not work. Do you have any idea why it happens?

Okay, it works. Thank you

I've sent it

  • ABP Framework version: v8.1.1
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC): yes

Hi all,

We've followed your documentation when we integrated it in our module. We use the FileSystem option. After upgrading the solution 7.3 to 8.1, we have an exception on docs module. So we've created application template solution from scratch to see whether we have the same case.

  1. Create a solution on abp suite
  2. Installing docs module packages and adding the dependencies on each layer (both web and admin packages)
  3. Insert the documentation on SQL INSERT [dbo].[DocsProjects] ([Id], [Name], [ShortName], [Format], [DefaultDocumentName], [NavigationDocumentName], [MinimumVersion], [DocumentStoreType], [ExtraProperties], [MainWebsiteUrl], [LatestVersionBranchName], [ParametersDocumentName], [ConcurrencyStamp]) VALUES (N'12321123-e08e-4f15-bedb-ae0b2d939659', N'ABP framework (FileSystem)', N'abp', N'md', N'Index', N'docs-nav.json', NULL, N'FileSystem', N'{"Path":"C:\\Github\\abp\\docs"}', N'/', NULL, N'', N'2f836e13a2084c3fb720a4d586a11f9a')
  4. Navigate the https://localhost/Documents
  5. Get the exception
  6. I am able to see admin pages. There are no issues.

How to solve that issue on v8.1.1?

It appears that it is a problem with the newest version. We haven't experienced such an issue so far. Btw, I've tried the code above and it works. If I understand correctly, we MUST enable the redis with tiered applications after v8.0, right?

I am running AuthServer, HttpApi.Host and Web.Host

Showing 1 to 10 of 72 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09