LabWork08 is finally done.
This commit is contained in:
parent
4c5fce0332
commit
7cf85f1270
2
.gitignore
vendored
2
.gitignore
vendored
@ -397,4 +397,4 @@ FodyWeavers.xsd
|
||||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
|
||||
*.dll
|
||||
|
@ -17,9 +17,9 @@ namespace DressAtelierContracts.ViewModels
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
[Column(title: "Password", width: 150)]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
[Column(title: "WorkExperience", width: 50)]
|
||||
[Column(title: "WorkExperience", width: 150)]
|
||||
public int WorkExperience { get; set; }
|
||||
[Column(title: "Qualification", width: 50)]
|
||||
[Column(title: "Qualification", width: 150)]
|
||||
public int Qualification { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ namespace DressAtelierContracts.ViewModels
|
||||
[Column(title: "Message content", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
||||
public string Body { get; set; } = string.Empty;
|
||||
|
||||
[Column(visible: false)]
|
||||
public int ID { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ namespace DressAtelierContracts.ViewModels
|
||||
[Column(title: "DressName", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
||||
public string DressName { get; set; } = string.Empty;
|
||||
|
||||
[Column(title: "Quantity", width: 50)]
|
||||
[Column(title: "Quantity", width: 100)]
|
||||
public int Count { get; set; }
|
||||
|
||||
[Column(title: "Overall price", width: 50)]
|
||||
|
@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace DressAtelierDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(DressAtelierDatabase))]
|
||||
[Migration("20230422104256_Messages")]
|
||||
partial class Messages
|
||||
[Migration("20230423203827_FixesMessages")]
|
||||
partial class FixesMessages
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@ -79,8 +79,11 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
|
||||
modelBuilder.Entity("DressAtelierDatabaseImplement.Models.MessageInfo", b =>
|
||||
{
|
||||
b.Property<string>("ID")
|
||||
.HasColumnType("nvarchar(450)");
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||
|
||||
b.Property<string>("Body")
|
||||
.IsRequired()
|
||||
@ -92,6 +95,10 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
b.Property<DateTime>("DeliveryDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("MessageID")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("SenderName")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@ -219,7 +226,7 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
modelBuilder.Entity("DressAtelierDatabaseImplement.Models.MessageInfo", b =>
|
||||
{
|
||||
b.HasOne("DressAtelierDatabaseImplement.Models.Client", "Client")
|
||||
.WithMany()
|
||||
.WithMany("Messages")
|
||||
.HasForeignKey("ClientID");
|
||||
|
||||
b.Navigation("Client");
|
||||
@ -271,6 +278,8 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
|
||||
modelBuilder.Entity("DressAtelierDatabaseImplement.Models.Client", b =>
|
||||
{
|
||||
b.Navigation("Messages");
|
||||
|
||||
b.Navigation("Orders");
|
||||
});
|
||||
|
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace DressAtelierDatabaseImplement.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Messages : Migration
|
||||
public partial class FixesMessages : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@ -15,7 +15,9 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
name: "Messages",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
MessageID = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
ClientID = table.Column<int>(type: "int", nullable: true),
|
||||
SenderName = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
DeliveryDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
@ -76,8 +76,11 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
|
||||
modelBuilder.Entity("DressAtelierDatabaseImplement.Models.MessageInfo", b =>
|
||||
{
|
||||
b.Property<string>("ID")
|
||||
.HasColumnType("nvarchar(450)");
|
||||
b.Property<int>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||
|
||||
b.Property<string>("Body")
|
||||
.IsRequired()
|
||||
@ -89,6 +92,10 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
b.Property<DateTime>("DeliveryDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("MessageID")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("SenderName")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
@ -216,7 +223,7 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
modelBuilder.Entity("DressAtelierDatabaseImplement.Models.MessageInfo", b =>
|
||||
{
|
||||
b.HasOne("DressAtelierDatabaseImplement.Models.Client", "Client")
|
||||
.WithMany()
|
||||
.WithMany("Messages")
|
||||
.HasForeignKey("ClientID");
|
||||
|
||||
b.Navigation("Client");
|
||||
@ -268,6 +275,8 @@ namespace DressAtelierDatabaseImplement.Migrations
|
||||
|
||||
modelBuilder.Entity("DressAtelierDatabaseImplement.Models.Client", b =>
|
||||
{
|
||||
b.Navigation("Messages");
|
||||
|
||||
b.Navigation("Orders");
|
||||
});
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DressAtelierBusinessLogic\DressAtelierBusinessLogic.csproj" />
|
||||
<ProjectReference Include="..\DressAtelierContracts\DressAtelierContracts.csproj" />
|
||||
<ProjectReference Include="..\DressAtelierDataModels\DressAtelierDataModels.csproj" />
|
||||
<ProjectReference Include="..\DressAtelierDatabaseImplement\DressAtelierDatabaseImplement.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user