1- #nullable disable
1+ using System ;
2+ using Microsoft . EntityFrameworkCore . Migrations ;
3+
4+ #nullable disable
25
36namespace AspNetCoreTemplate . Data . Migrations
47{
5- using System ;
6-
7- using Microsoft . EntityFrameworkCore . Migrations ;
8-
8+ /// <inheritdoc />
99 public partial class InitialCreate : Migration
1010 {
11+ /// <inheritdoc />
1112 protected override void Up ( MigrationBuilder migrationBuilder )
1213 {
1314 migrationBuilder . CreateTable (
@@ -21,7 +22,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
2122 DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
2223 Name = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
2324 NormalizedName = table . Column < string > ( type : "nvarchar(256)" , maxLength : 256 , nullable : true ) ,
24- ConcurrencyStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
25+ ConcurrencyStamp = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
2526 } ,
2627 constraints : table =>
2728 {
@@ -50,7 +51,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
5051 TwoFactorEnabled = table . Column < bool > ( type : "bit" , nullable : false ) ,
5152 LockoutEnd = table . Column < DateTimeOffset > ( type : "datetimeoffset" , nullable : true ) ,
5253 LockoutEnabled = table . Column < bool > ( type : "bit" , nullable : false ) ,
53- AccessFailedCount = table . Column < int > ( type : "int" , nullable : false ) ,
54+ AccessFailedCount = table . Column < int > ( type : "int" , nullable : false )
5455 } ,
5556 constraints : table =>
5657 {
@@ -68,7 +69,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
6869 CreatedOn = table . Column < DateTime > ( type : "datetime2" , nullable : false ) ,
6970 ModifiedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
7071 IsDeleted = table . Column < bool > ( type : "bit" , nullable : false ) ,
71- DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true ) ,
72+ DeletedOn = table . Column < DateTime > ( type : "datetime2" , nullable : true )
7273 } ,
7374 constraints : table =>
7475 {
@@ -83,7 +84,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
8384 . Annotation ( "SqlServer:Identity" , "1, 1" ) ,
8485 RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
8586 ClaimType = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
86- ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
87+ ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
8788 } ,
8889 constraints : table =>
8990 {
@@ -104,7 +105,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
104105 . Annotation ( "SqlServer:Identity" , "1, 1" ) ,
105106 UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
106107 ClaimType = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
107- ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
108+ ClaimValue = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
108109 } ,
109110 constraints : table =>
110111 {
@@ -124,7 +125,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
124125 LoginProvider = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
125126 ProviderKey = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
126127 ProviderDisplayName = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
127- UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
128+ UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false )
128129 } ,
129130 constraints : table =>
130131 {
@@ -142,7 +143,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
142143 columns : table => new
143144 {
144145 UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
145- RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
146+ RoleId = table . Column < string > ( type : "nvarchar(450)" , nullable : false )
146147 } ,
147148 constraints : table =>
148149 {
@@ -168,7 +169,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
168169 UserId = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
169170 LoginProvider = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
170171 Name = table . Column < string > ( type : "nvarchar(450)" , nullable : false ) ,
171- Value = table . Column < string > ( type : "nvarchar(max)" , nullable : true ) ,
172+ Value = table . Column < string > ( type : "nvarchar(max)" , nullable : true )
172173 } ,
173174 constraints : table =>
174175 {
@@ -236,6 +237,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
236237 column : "IsDeleted" ) ;
237238 }
238239
240+ /// <inheritdoc />
239241 protected override void Down ( MigrationBuilder migrationBuilder )
240242 {
241243 migrationBuilder . DropTable (
0 commit comments