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