1
- // ReSharper disable RedundantArgumentDefaultValue
2
- namespace AspNetCoreTemplate . Data . Migrations
1
+ namespace AspNetCoreTemplate . Data . Migrations
3
2
{
4
3
using System ;
5
4
6
- using Microsoft . EntityFrameworkCore . Metadata ;
7
5
using Microsoft . EntityFrameworkCore . Migrations ;
8
6
9
7
public partial class InitialCreate : Migration
@@ -62,7 +60,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
62
60
columns : table => new
63
61
{
64
62
Id = table . Column < int > ( nullable : false )
65
- . Annotation ( "SqlServer:ValueGenerationStrategy " , SqlServerValueGenerationStrategy . IdentityColumn ) ,
63
+ . Annotation ( "SqlServer:Identity " , "1, 1" ) ,
66
64
CreatedOn = table . Column < DateTime > ( nullable : false ) ,
67
65
ModifiedOn = table . Column < DateTime > ( nullable : true ) ,
68
66
IsDeleted = table . Column < bool > ( nullable : false ) ,
@@ -80,7 +78,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
80
78
columns : table => new
81
79
{
82
80
Id = table . Column < int > ( nullable : false )
83
- . Annotation ( "SqlServer:ValueGenerationStrategy " , SqlServerValueGenerationStrategy . IdentityColumn ) ,
81
+ . Annotation ( "SqlServer:Identity " , "1, 1" ) ,
84
82
RoleId = table . Column < string > ( nullable : false ) ,
85
83
ClaimType = table . Column < string > ( nullable : true ) ,
86
84
ClaimValue = table . Column < string > ( nullable : true ) ,
@@ -101,7 +99,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
101
99
columns : table => new
102
100
{
103
101
Id = table . Column < int > ( nullable : false )
104
- . Annotation ( "SqlServer:ValueGenerationStrategy " , SqlServerValueGenerationStrategy . IdentityColumn ) ,
102
+ . Annotation ( "SqlServer:Identity " , "1, 1" ) ,
105
103
UserId = table . Column < string > ( nullable : false ) ,
106
104
ClaimType = table . Column < string > ( nullable : true ) ,
107
105
ClaimValue = table . Column < string > ( nullable : true ) ,
0 commit comments