Updated mirgration + small fix
This commit is contained in:
parent
e3d0bb06d6
commit
132624a16b
@ -1,4 +1,5 @@
|
|||||||
using FurnitureAssembly_WorkerBusinessLogic.OfficePackage.HelperModels;
|
using FurnitureAssembly_WorkerBusinessLogic.OfficePackage;
|
||||||
|
using FurnitureAssembly_WorkerBusinessLogic.OfficePackage.HelperModels;
|
||||||
using FurnitureAssembly_WorkerContracts.BindingModels;
|
using FurnitureAssembly_WorkerContracts.BindingModels;
|
||||||
using FurnitureAssembly_WorkerContracts.BusinessLogicContracts;
|
using FurnitureAssembly_WorkerContracts.BusinessLogicContracts;
|
||||||
using FurnitureAssembly_WorkerContracts.SearchModels;
|
using FurnitureAssembly_WorkerContracts.SearchModels;
|
||||||
@ -107,7 +108,7 @@ namespace FurnitureAssembly_WorkerBusinessLogic.BusinessLogics
|
|||||||
/// Сохранение компонент в файл-Word
|
/// Сохранение компонент в файл-Word
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="model"></param>
|
/// <param name="model"></param>
|
||||||
public void SaveFurnitureModulesToWordFile(ReportBindingModel model)
|
public void SaveFurnitureModuleToWordFile(ReportBindingModel model)
|
||||||
{
|
{
|
||||||
_saveToWord.CreateDoc(new WordInfo
|
_saveToWord.CreateDoc(new WordInfo
|
||||||
{
|
{
|
||||||
|
@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(FurnitureAssemblyDatabase))]
|
[DbContext(typeof(FurnitureAssemblyDatabase))]
|
||||||
[Migration("20230405211314_InitMigration")]
|
[Migration("20230406130140_Init")]
|
||||||
partial class InitMigration
|
partial class Init
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
@ -184,6 +184,9 @@ namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
|||||||
b.Property<int>("SetId")
|
b.Property<int>("SetId")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.Property<double>("Sum")
|
||||||
|
.HasColumnType("double precision");
|
||||||
|
|
||||||
b.Property<int>("UserId")
|
b.Property<int>("UserId")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|||||||
namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class InitMigration : Migration
|
public partial class Init : Migration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
@ -218,6 +218,7 @@ namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
|||||||
PaymentType = table.Column<int>(type: "integer", nullable: false),
|
PaymentType = table.Column<int>(type: "integer", nullable: false),
|
||||||
SetId = table.Column<int>(type: "integer", nullable: false),
|
SetId = table.Column<int>(type: "integer", nullable: false),
|
||||||
DateCreate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
DateCreate = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||||
|
Sum = table.Column<double>(type: "double precision", nullable: false),
|
||||||
UserId = table.Column<int>(type: "integer", nullable: false)
|
UserId = table.Column<int>(type: "integer", nullable: false)
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
@ -181,6 +181,9 @@ namespace FurnitureAssembly_WorkerDatabaseImplement.Migrations
|
|||||||
b.Property<int>("SetId")
|
b.Property<int>("SetId")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
b.Property<double>("Sum")
|
||||||
|
.HasColumnType("double precision");
|
||||||
|
|
||||||
b.Property<int>("UserId")
|
b.Property<int>("UserId")
|
||||||
.HasColumnType("integer");
|
.HasColumnType("integer");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user