Files
lux/Lux.Data/Migrations/DataLayerContextModelSnapshot.cs
T

71 lines
2.3 KiB
C#

// <auto-generated />
using Lux.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Lux.Data.Migrations
{
[DbContext(typeof(DataLayerContext))]
partial class DataLayerContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.17")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
modelBuilder.Entity("Lux.Data.DbModel.ArticoloModel", b =>
{
b.Property<int>("ArtID")
.ValueGeneratedOnAdd()
.HasColumnType("int");
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("ArtID"));
b.Property<int>("CodArt")
.HasColumnType("int");
b.Property<string>("CodArtExt")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("CodFornitore")
.IsRequired()
.HasColumnType("longtext");
b.Property<string>("CodParl")
.IsRequired()
.HasColumnType("longtext");
b.Property<double>("Cost")
.HasColumnType("double");
b.Property<string>("Description")
.IsRequired()
.HasColumnType("longtext");
b.Property<bool>("IsMake")
.HasColumnType("tinyint(1)");
b.Property<bool>("IsService")
.HasColumnType("tinyint(1)");
b.Property<double>("Margin")
.HasColumnType("double");
b.HasKey("ArtID");
b.ToTable("AnagArticoli");
});
#pragma warning restore 612, 618
}
}
}