-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating docs and samples to Beta 7 - except for cross-plat ones which will come in a separate commit. Note that UWP is currently broken on Beta 7, so adding docs to use Beta 6 for the moment.
- Loading branch information
1 parent
8b389cd
commit d50eb17
Showing
24 changed files
with
286 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"projects": [ "src", "test" ], | ||
"sdk": { | ||
"version": "1.0.0-beta6" | ||
"version": "1.0.0-beta7" | ||
} | ||
} |
25 changes: 11 additions & 14 deletions
25
...t5/sample/src/EFGetStarted.AspNet5/Migrations/20150610230331_MyFirstMigration.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
38 changes: 19 additions & 19 deletions
38
...ted/aspnet5/sample/src/EFGetStarted.AspNet5/Migrations/20150610230331_MyFirstMigration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.Data.Entity.Migrations; | ||
using Microsoft.Data.Entity.Migrations.Builders; | ||
using Microsoft.Data.Entity.Migrations.Operations; | ||
using Microsoft.Data.Entity.SqlServer.Metadata; | ||
|
||
namespace EFGetStarted.AspNet5.Migrations | ||
{ | ||
public partial class MyFirstMigration : Migration | ||
{ | ||
public override void Up(MigrationBuilder migration) | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migration.CreateTable( | ||
migrationBuilder.CreateTable( | ||
name: "Blog", | ||
columns: table => new | ||
{ | ||
BlogId = table.Column(type: "int", nullable: false) | ||
.Annotation("SqlServer:ValueGenerationStrategy", "IdentityColumn"), | ||
Url = table.Column(type: "nvarchar(max)", nullable: false) | ||
BlogId = table.Column<int>(isNullable: false) | ||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerIdentityStrategy.IdentityColumn), | ||
Url = table.Column<string>(isNullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Blog", x => x.BlogId); | ||
}); | ||
migration.CreateTable( | ||
migrationBuilder.CreateTable( | ||
name: "Post", | ||
columns: table => new | ||
{ | ||
PostId = table.Column(type: "int", nullable: false) | ||
.Annotation("SqlServer:ValueGenerationStrategy", "IdentityColumn"), | ||
BlogId = table.Column(type: "int", nullable: false), | ||
Content = table.Column(type: "nvarchar(max)", nullable: true), | ||
Title = table.Column(type: "nvarchar(max)", nullable: true) | ||
PostId = table.Column<int>(isNullable: false) | ||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerIdentityStrategy.IdentityColumn), | ||
BlogId = table.Column<int>(isNullable: false), | ||
Content = table.Column<string>(isNullable: true), | ||
Title = table.Column<string>(isNullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Post", x => x.PostId); | ||
table.ForeignKey( | ||
name: "FK_Post_Blog_BlogId", | ||
columns: x => x.BlogId, | ||
referencedTable: "Blog", | ||
referencedColumn: "BlogId"); | ||
column: x => x.BlogId, | ||
principalTable: "Blog", | ||
principalColumn: "BlogId"); | ||
}); | ||
} | ||
|
||
public override void Down(MigrationBuilder migration) | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migration.DropTable("Post"); | ||
migration.DropTable("Blog"); | ||
migrationBuilder.DropTable("Post"); | ||
migrationBuilder.DropTable("Blog"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.