You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EntityFrameworkCore.Jet/test/EFCore.Jet.IntegrationTests/MigrationUpDownTest/MigrationWithNumericDefault...

19 lines
634 B
C#

namespace EFCore.Jet.Integration.Test.MigrationUpDownTest
{
public class MigrationWithNumericDefaultValue : DbMigration
{
public override void Up()
{
CreateTable(
"MigrationWithNumericDefaultValue",
c => new
{
Id = c.Int(nullable: false, identity: true),
Description = c.String(false, 50),
Age = c.Int(nullable: false, defaultValue:50),
AgeNotNullable = c.Int(nullable: true, defaultValue: 50)
})
.PrimaryKey(t => t.Id);
}
}
}