From 921f8ba6bd5961bcffb44e9856624cb5f7788486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 8 Apr 2020 16:42:54 +0300 Subject: [PATCH] Update IdentityDbContextModelBuilderExtensions.cs --- .../IdentityDbContextModelBuilderExtensions.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs index 5e5d315caf..89d53616c2 100644 --- a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs +++ b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/IdentityDbContextModelBuilderExtensions.cs @@ -186,7 +186,6 @@ namespace Volo.Abp.Identity.EntityFrameworkCore b.HasKey(ou => new { ou.OrganizationUnitId, ou.UserId }); b.HasOne().WithMany().HasForeignKey(ou => ou.OrganizationUnitId).IsRequired(); - b.HasOne().WithMany().HasForeignKey(ou => ou.UserId).IsRequired(); b.HasIndex(ou => new { ou.UserId, ou.OrganizationUnitId }); });