chore: rename project, containing models

This commit is contained in:
cuqmbr 2022-07-17 21:18:43 +03:00
parent 3dc782d76a
commit bb01821b3d
14 changed files with 20 additions and 19 deletions

View File

@ -2,7 +2,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{7329EAAE-16BE-4A9C-8F8A-AF1913813129}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DatabaseModels", "DatabaseModels\DatabaseModels.csproj", "{1F02ACB1-88BD-4A1F-A481-CB8B9714711B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharedModels", "SharedModels\SharedModels.csproj", "{1F02ACB1-88BD-4A1F-A481-CB8B9714711B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -19,7 +19,7 @@ namespace Server.Migrations
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.6");
modelBuilder.Entity("DatabaseModels.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.ScoreboardRecord", b =>
{
b.Property<string>("Username")
.HasColumnType("TEXT");

View File

@ -19,7 +19,7 @@ namespace Server.Migrations
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.6");
modelBuilder.Entity("DatabaseModels.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.ScoreboardRecord", b =>
{
b.Property<string>("Username")
.HasColumnType("TEXT");

View File

@ -19,7 +19,7 @@ namespace Server.Migrations
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.6");
modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.Plain.ScoreboardRecord", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -41,7 +41,7 @@ namespace Server.Migrations
b.ToTable("Scoreboard");
});
modelBuilder.Entity("DatabaseModels.Plain.User", b =>
modelBuilder.Entity("SharedModels.Plain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -64,9 +64,9 @@ namespace Server.Migrations
b.ToTable("Users");
});
modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.Plain.ScoreboardRecord", b =>
{
b.HasOne("DatabaseModels.Plain.User", "User")
b.HasOne("SharedModels.Plain.User", "User")
.WithMany("ScoreboardRecords")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@ -75,7 +75,7 @@ namespace Server.Migrations
b.Navigation("User");
});
modelBuilder.Entity("DatabaseModels.Plain.User", b =>
modelBuilder.Entity("SharedModels.Plain.User", b =>
{
b.Navigation("ScoreboardRecords");
});

View File

@ -19,7 +19,7 @@ namespace Server.Migrations
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.6");
modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.Plain.ScoreboardRecord", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -41,7 +41,7 @@ namespace Server.Migrations
b.ToTable("Scoreboard");
});
modelBuilder.Entity("DatabaseModels.Plain.User", b =>
modelBuilder.Entity("SharedModels.Plain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -68,9 +68,9 @@ namespace Server.Migrations
b.ToTable("Users");
});
modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.Plain.ScoreboardRecord", b =>
{
b.HasOne("DatabaseModels.Plain.User", "User")
b.HasOne("SharedModels.Plain.User", "User")
.WithMany("ScoreboardRecords")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@ -79,7 +79,7 @@ namespace Server.Migrations
b.Navigation("User");
});
modelBuilder.Entity("DatabaseModels.Plain.User", b =>
modelBuilder.Entity("SharedModels.Plain.User", b =>
{
b.Navigation("ScoreboardRecords");
});

View File

@ -17,7 +17,7 @@ namespace Server.Migrations
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.6");
modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.Plain.ScoreboardRecord", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -39,7 +39,7 @@ namespace Server.Migrations
b.ToTable("Scoreboard");
});
modelBuilder.Entity("DatabaseModels.Plain.User", b =>
modelBuilder.Entity("SharedModels.Plain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@ -66,9 +66,9 @@ namespace Server.Migrations
b.ToTable("Users");
});
modelBuilder.Entity("DatabaseModels.Plain.ScoreboardRecord", b =>
modelBuilder.Entity("SharedModels.Plain.ScoreboardRecord", b =>
{
b.HasOne("DatabaseModels.Plain.User", "User")
b.HasOne("SharedModels.Plain.User", "User")
.WithMany("ScoreboardRecords")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@ -77,7 +77,7 @@ namespace Server.Migrations
b.Navigation("User");
});
modelBuilder.Entity("DatabaseModels.Plain.User", b =>
modelBuilder.Entity("SharedModels.Plain.User", b =>
{
b.Navigation("ScoreboardRecords");
});

View File

@ -25,7 +25,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DatabaseModels\DatabaseModels.csproj" />
<ProjectReference Include="..\SharedModels\SharedModels.csproj" />
</ItemGroup>
</Project>

View File

@ -4,6 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>DatabaseModels</RootNamespace>
</PropertyGroup>
</Project>