CS2-123: Renamed Permission collections in EF models

This commit is contained in:
KharchenkoVladimir 2021-11-30 17:25:08 +05:00
parent ad061bbca5
commit 1d078379b4
3 changed files with 2914 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace AsbCloudDb.Migrations
{
public partial class Renamed_PermissionCollections : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View File

@ -2538,13 +2538,13 @@ namespace AsbCloudDb.Migrations
modelBuilder.Entity("AsbCloudDb.Model.Permission", b => modelBuilder.Entity("AsbCloudDb.Model.Permission", b =>
{ {
b.HasOne("AsbCloudDb.Model.PermissionInfo", "PermissionInfo") b.HasOne("AsbCloudDb.Model.PermissionInfo", "PermissionInfo")
.WithMany("RelationUserRolesPermissions") .WithMany("Permissions")
.HasForeignKey("IdPermission") .HasForeignKey("IdPermission")
.OnDelete(DeleteBehavior.Cascade) .OnDelete(DeleteBehavior.Cascade)
.IsRequired(); .IsRequired();
b.HasOne("AsbCloudDb.Model.UserRole", "UserRole") b.HasOne("AsbCloudDb.Model.UserRole", "UserRole")
.WithMany("RelationUserRolesPermissions") .WithMany("Permissions")
.HasForeignKey("IdRole") .HasForeignKey("IdRole")
.OnDelete(DeleteBehavior.Cascade) .OnDelete(DeleteBehavior.Cascade)
.IsRequired(); .IsRequired();
@ -2820,7 +2820,7 @@ namespace AsbCloudDb.Migrations
modelBuilder.Entity("AsbCloudDb.Model.PermissionInfo", b => modelBuilder.Entity("AsbCloudDb.Model.PermissionInfo", b =>
{ {
b.Navigation("RelationUserRolesPermissions"); b.Navigation("Permissions");
}); });
modelBuilder.Entity("AsbCloudDb.Model.Telemetry", b => modelBuilder.Entity("AsbCloudDb.Model.Telemetry", b =>
@ -2851,7 +2851,7 @@ namespace AsbCloudDb.Migrations
modelBuilder.Entity("AsbCloudDb.Model.UserRole", b => modelBuilder.Entity("AsbCloudDb.Model.UserRole", b =>
{ {
b.Navigation("RelationUserRolesPermissions"); b.Navigation("Permissions");
b.Navigation("RelationUsersUserRoles"); b.Navigation("RelationUsersUserRoles");
}); });