more tentative to fix build
This commit is contained in:
parent
f67b20d6bb
commit
4fc7babd75
3 changed files with 76 additions and 76 deletions
|
@ -1,53 +1,53 @@
|
|||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Sledgemapper.Helpers;
|
||||
// // <auto-generated />
|
||||
// using System;
|
||||
// using Microsoft.EntityFrameworkCore;
|
||||
// using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
// using Microsoft.EntityFrameworkCore.Metadata;
|
||||
// using Microsoft.EntityFrameworkCore.Migrations;
|
||||
// using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
// using Sledgemapper.Helpers;
|
||||
|
||||
namespace Sledgemapper.Migrations.SqlServerMigrations
|
||||
{
|
||||
[DbContext(typeof(DataContext))]
|
||||
[Migration("20200102103423_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "3.1.0")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
// namespace Sledgemapper.Migrations.SqlServerMigrations
|
||||
// {
|
||||
// [DbContext(typeof(DataContext))]
|
||||
// [Migration("20200102103423_InitialCreate")]
|
||||
// partial class InitialCreate
|
||||
// {
|
||||
// protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
// {
|
||||
// #pragma warning disable 612, 618
|
||||
// modelBuilder
|
||||
// .HasAnnotation("ProductVersion", "3.1.0")
|
||||
// .HasAnnotation("Relational:MaxIdentifierLength", 128)
|
||||
// .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
modelBuilder.Entity("Sledgemapper.Entities.User", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
// modelBuilder.Entity("Sledgemapper.Entities.User", b =>
|
||||
// {
|
||||
// b.Property<int>("Id")
|
||||
// .ValueGeneratedOnAdd()
|
||||
// .HasColumnType("int")
|
||||
// .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("FirstName")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
// b.Property<string>("FirstName")
|
||||
// .HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("LastName")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
// b.Property<string>("LastName")
|
||||
// .HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<byte[]>("PasswordHash")
|
||||
.HasColumnType("varbinary(max)");
|
||||
// b.Property<byte[]>("PasswordHash")
|
||||
// .HasColumnType("varbinary(max)");
|
||||
|
||||
b.Property<byte[]>("PasswordSalt")
|
||||
.HasColumnType("varbinary(max)");
|
||||
// b.Property<byte[]>("PasswordSalt")
|
||||
// .HasColumnType("varbinary(max)");
|
||||
|
||||
b.Property<string>("Username")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
// b.Property<string>("Username")
|
||||
// .HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
// b.HasKey("Id");
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
// b.ToTable("Users");
|
||||
// });
|
||||
// #pragma warning restore 612, 618
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
// using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Sledgemapper.Migrations.SqlServerMigrations
|
||||
{
|
||||
public partial class InitialCreate : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Users",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
FirstName = table.Column<string>(nullable: true),
|
||||
LastName = table.Column<string>(nullable: true),
|
||||
Username = table.Column<string>(nullable: true),
|
||||
PasswordHash = table.Column<byte[]>(nullable: true),
|
||||
PasswordSalt = table.Column<byte[]>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Users", x => x.Id);
|
||||
});
|
||||
}
|
||||
// namespace Sledgemapper.Migrations.SqlServerMigrations
|
||||
// {
|
||||
// public partial class InitialCreate : Migration
|
||||
// {
|
||||
// protected override void Up(MigrationBuilder migrationBuilder)
|
||||
// {
|
||||
// migrationBuilder.CreateTable(
|
||||
// name: "Users",
|
||||
// columns: table => new
|
||||
// {
|
||||
// Id = table.Column<int>(nullable: false)
|
||||
// .Annotation("SqlServer:Identity", "1, 1"),
|
||||
// FirstName = table.Column<string>(nullable: true),
|
||||
// LastName = table.Column<string>(nullable: true),
|
||||
// Username = table.Column<string>(nullable: true),
|
||||
// PasswordHash = table.Column<byte[]>(nullable: true),
|
||||
// PasswordSalt = table.Column<byte[]>(nullable: true)
|
||||
// },
|
||||
// constraints: table =>
|
||||
// {
|
||||
// table.PrimaryKey("PK_Users", x => x.Id);
|
||||
// });
|
||||
// }
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Users");
|
||||
}
|
||||
}
|
||||
}
|
||||
// protected override void Down(MigrationBuilder migrationBuilder)
|
||||
// {
|
||||
// migrationBuilder.DropTable(
|
||||
// name: "Users");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue