test project created

This commit is contained in:
Kalana B. Thilakarathna
2026-08-19 14:40:04 +05:30
parent 397af8fd59
commit 4673d72d53
148 changed files with 8252 additions and 285 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,164 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Distribution.Migrations
{
/// <inheritdoc />
public partial class item_catalog : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "Factor",
table: "UomConversions",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "OneTimeAmount",
table: "Stores",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Longitude",
table: "Stores",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Latitude",
table: "Stores",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "CreditAmount",
table: "Stores",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "Length",
table: "Routes",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalAmount",
table: "Orders",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "UnitPrice",
table: "OrderItems",
type: "decimal(65,30)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)");
migrationBuilder.AlterColumn<decimal>(
name: "SalePrice",
table: "Items",
type: "decimal(65,30)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "Factor",
table: "UomConversions",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "OneTimeAmount",
table: "Stores",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "Longitude",
table: "Stores",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "Latitude",
table: "Stores",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "CreditAmount",
table: "Stores",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "Length",
table: "Routes",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "TotalAmount",
table: "Orders",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "UnitPrice",
table: "OrderItems",
type: "decimal(18,2)",
nullable: false,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)");
migrationBuilder.AlterColumn<decimal>(
name: "SalePrice",
table: "Items",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(decimal),
oldType: "decimal(65,30)",
oldNullable: true);
}
}
}
@@ -3,6 +3,7 @@ using System;
using Distribution.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
@@ -16,9 +17,11 @@ namespace Distribution.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.9")
.HasAnnotation("ProductVersion", "9.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("Distribution.Models.Brand", b =>
{
b.Property<Guid>("Id")
@@ -138,7 +141,7 @@ namespace Distribution.Migrations
.HasColumnType("longtext");
b.Property<decimal?>("SalePrice")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.Property<string>("Sku")
.IsRequired()
@@ -179,7 +182,7 @@ namespace Distribution.Migrations
.HasColumnType("datetime(6)");
b.Property<decimal>("TotalAmount")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.HasKey("Id");
@@ -209,7 +212,7 @@ namespace Distribution.Migrations
.HasColumnType("int");
b.Property<decimal>("UnitPrice")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.HasKey("FK_OrderId", "FK_ItemId");
@@ -1642,7 +1645,7 @@ namespace Distribution.Migrations
.HasColumnType("tinyint(1)");
b.Property<decimal>("Length")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.Property<string>("RouteName")
.IsRequired()
@@ -1686,7 +1689,7 @@ namespace Distribution.Migrations
.HasColumnType("datetime(6)");
b.Property<decimal>("CreditAmount")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.Property<Guid>("FK_RouteId")
.HasColumnType("char(36)");
@@ -1695,13 +1698,13 @@ namespace Distribution.Migrations
.HasColumnType("tinyint(1)");
b.Property<decimal>("Latitude")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.Property<decimal>("Longitude")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.Property<decimal>("OneTimeAmount")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.Property<string>("OwnerName")
.IsRequired()
@@ -1791,7 +1794,7 @@ namespace Distribution.Migrations
.HasColumnType("char(36)");
b.Property<decimal>("Factor")
.HasColumnType("decimal(18,2)");
.HasColumnType("decimal(65,30)");
b.HasKey("Id");