mama say mama sa mama coo sa
This commit is contained in:
parent
a48d6d1e44
commit
a6aa2d3e35
@ -10,7 +10,7 @@ namespace HardwareShopDatabaseImplement
|
||||
{
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=Computer_Hardware_Store3;Username=postgres;Password=1234");
|
||||
optionsBuilder.UseNpgsql("Host=localhost;Port=5433;Database=Computer_Hardware_Store;Username=user;Password=12345");
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
}
|
||||
|
||||
|
@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace HardwareShopDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(HardwareShopDatabase))]
|
||||
[Migration("20230408110229_Init")]
|
||||
partial class Init
|
||||
[Migration("20230408132346_mama-say-mama-sa-mama-coo-sa")]
|
||||
partial class mamasaymamasamamacoosa
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@ -414,13 +414,11 @@ namespace HardwareShopDatabaseImplement.Migrations
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Build", b =>
|
||||
{
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", null)
|
||||
.WithMany("Builds")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Comment", b =>
|
||||
@ -431,26 +429,22 @@ namespace HardwareShopDatabaseImplement.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", null)
|
||||
.WithMany("Comments")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Build");
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Purchase", b =>
|
||||
{
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", null)
|
||||
.WithMany("Purchases")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Component", b =>
|
@ -1,4 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
@ -6,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace HardwareShopDatabaseImplement.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Init : Migration
|
||||
public partial class mamasaymamasamamacoosa : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
@ -411,13 +411,11 @@ namespace HardwareShopDatabaseImplement.Migrations
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Build", b =>
|
||||
{
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", null)
|
||||
.WithMany("Builds")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Comment", b =>
|
||||
@ -428,26 +426,22 @@ namespace HardwareShopDatabaseImplement.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", null)
|
||||
.WithMany("Comments")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Build");
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Purchase", b =>
|
||||
{
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
||||
b.HasOne("HardwareShopDatabaseImplement.Models.User", null)
|
||||
.WithMany("Purchases")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Component", b =>
|
||||
|
Loading…
Reference in New Issue
Block a user