Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.Data.Entity;
- using Microsoft.Data.Entity.Infrastructure;
- using Microsoft.Data.Entity.Metadata;
- using Microsoft.Data.Entity.Migrations;
- using WebApplication2.Models;
- using Microsoft.Data.Entity.SqlServer.Metadata;
- namespace WebApplication2.Migrations
- {
- [DbContext(typeof(ApplicationDbContext))]
- partial class Init
- {
- public override string Id
- {
- get { return "20150929181902_Init"; }
- }
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- modelBuilder
- .Annotation("ProductVersion", "7.0.0-beta7-15540")
- .Annotation("SqlServer:ValueGenerationStrategy", SqlServerIdentityStrategy.IdentityColumn);
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b =>
- {
- b.Property<string>("Id");
- b.Property<string>("ConcurrencyStamp")
- .ConcurrencyToken();
- b.Property<string>("Name")
- .Annotation("MaxLength", 256);
- b.Property<string>("NormalizedName")
- .Annotation("MaxLength", 256);
- b.Key("Id");
- b.Index("NormalizedName")
- .Annotation("Relational:Name", "RoleNameIndex");
- b.Annotation("Relational:TableName", "AspNetRoles");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd();
- b.Property<string>("ClaimType");
- b.Property<string>("ClaimValue");
- b.Property<string>("RoleId");
- b.Key("Id");
- b.Annotation("Relational:TableName", "AspNetRoleClaims");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<string>", b =>
- {
- b.Property<int>("Id")
- .ValueGeneratedOnAdd();
- b.Property<string>("ClaimType");
- b.Property<string>("ClaimValue");
- b.Property<string>("UserId");
- b.Key("Id");
- b.Annotation("Relational:TableName", "AspNetUserClaims");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin<string>", b =>
- {
- b.Property<string>("LoginProvider");
- b.Property<string>("ProviderKey");
- b.Property<string>("ProviderDisplayName");
- b.Property<string>("UserId");
- b.Key("LoginProvider", "ProviderKey");
- b.Annotation("Relational:TableName", "AspNetUserLogins");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<string>", b =>
- {
- b.Property<string>("UserId");
- b.Property<string>("RoleId");
- b.Key("UserId", "RoleId");
- b.Annotation("Relational:TableName", "AspNetUserRoles");
- });
- modelBuilder.Entity("WebApplication2.Models.ApplicationUser", b =>
- {
- b.Property<string>("Id");
- b.Property<int>("AccessFailedCount");
- b.Property<string>("ConcurrencyStamp")
- .ConcurrencyToken();
- b.Property<string>("Email")
- .Annotation("MaxLength", 256);
- b.Property<bool>("EmailConfirmed");
- b.Property<bool>("LockoutEnabled");
- b.Property<DateTimeOffset?>("LockoutEnd");
- b.Property<string>("NormalizedEmail")
- .Annotation("MaxLength", 256);
- b.Property<string>("NormalizedUserName")
- .Annotation("MaxLength", 256);
- b.Property<string>("PasswordHash");
- b.Property<string>("PhoneNumber");
- b.Property<bool>("PhoneNumberConfirmed");
- b.Property<string>("SecurityStamp");
- b.Property<bool>("TwoFactorEnabled");
- b.Property<string>("UserName")
- .Annotation("MaxLength", 256);
- b.Key("Id");
- b.Index("NormalizedEmail")
- .Annotation("Relational:Name", "EmailIndex");
- b.Index("NormalizedUserName")
- .Annotation("Relational:Name", "UserNameIndex");
- b.Annotation("Relational:TableName", "AspNetUsers");
- });
- modelBuilder.Entity("WebApplication2.Models.Building", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd();
- b.Property<string>("Address");
- b.Property<Guid>("ApplicationUserId");
- b.Property<string>("ApplicationUserId1");
- b.Key("Id");
- });
- modelBuilder.Entity("WebApplication2.Models.City", b =>
- {
- b.Property<Guid>("Id")
- .ValueGeneratedOnAdd();
- b.Property<Guid>("ApplicationUserId");
- b.Property<string>("ApplicationUserId1");
- b.Property<string>("Name");
- b.Key("Id");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
- {
- b.Reference("Microsoft.AspNet.Identity.EntityFramework.IdentityRole")
- .InverseCollection()
- .ForeignKey("RoleId");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<string>", b =>
- {
- b.Reference("WebApplication2.Models.ApplicationUser")
- .InverseCollection()
- .ForeignKey("UserId");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin<string>", b =>
- {
- b.Reference("WebApplication2.Models.ApplicationUser")
- .InverseCollection()
- .ForeignKey("UserId");
- });
- modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<string>", b =>
- {
- b.Reference("Microsoft.AspNet.Identity.EntityFramework.IdentityRole")
- .InverseCollection()
- .ForeignKey("RoleId");
- b.Reference("WebApplication2.Models.ApplicationUser")
- .InverseCollection()
- .ForeignKey("UserId");
- });
- modelBuilder.Entity("WebApplication2.Models.Building", b =>
- {
- b.Reference("WebApplication2.Models.ApplicationUser")
- .InverseCollection()
- .ForeignKey("ApplicationUserId1");
- });
- modelBuilder.Entity("WebApplication2.Models.City", b =>
- {
- b.Reference("WebApplication2.Models.ApplicationUser")
- .InverseCollection()
- .ForeignKey("ApplicationUserId1");
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement