Advertisement
Guest User

20150929181902_Init.Designer.cs

a guest
Sep 29th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.87 KB | None | 0 0
  1. using System;
  2. using Microsoft.Data.Entity;
  3. using Microsoft.Data.Entity.Infrastructure;
  4. using Microsoft.Data.Entity.Metadata;
  5. using Microsoft.Data.Entity.Migrations;
  6. using WebApplication2.Models;
  7. using Microsoft.Data.Entity.SqlServer.Metadata;
  8.  
  9. namespace WebApplication2.Migrations
  10. {
  11.     [DbContext(typeof(ApplicationDbContext))]
  12.     partial class Init
  13.     {
  14.         public override string Id
  15.         {
  16.             get { return "20150929181902_Init"; }
  17.         }
  18.  
  19.         protected override void BuildTargetModel(ModelBuilder modelBuilder)
  20.         {
  21.             modelBuilder
  22.                 .Annotation("ProductVersion", "7.0.0-beta7-15540")
  23.                 .Annotation("SqlServer:ValueGenerationStrategy", SqlServerIdentityStrategy.IdentityColumn);
  24.  
  25.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b =>
  26.                 {
  27.                     b.Property<string>("Id");
  28.  
  29.                     b.Property<string>("ConcurrencyStamp")
  30.                         .ConcurrencyToken();
  31.  
  32.                     b.Property<string>("Name")
  33.                         .Annotation("MaxLength", 256);
  34.  
  35.                     b.Property<string>("NormalizedName")
  36.                         .Annotation("MaxLength", 256);
  37.  
  38.                     b.Key("Id");
  39.  
  40.                     b.Index("NormalizedName")
  41.                         .Annotation("Relational:Name", "RoleNameIndex");
  42.  
  43.                     b.Annotation("Relational:TableName", "AspNetRoles");
  44.                 });
  45.  
  46.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
  47.                 {
  48.                     b.Property<int>("Id")
  49.                         .ValueGeneratedOnAdd();
  50.  
  51.                     b.Property<string>("ClaimType");
  52.  
  53.                     b.Property<string>("ClaimValue");
  54.  
  55.                     b.Property<string>("RoleId");
  56.  
  57.                     b.Key("Id");
  58.  
  59.                     b.Annotation("Relational:TableName", "AspNetRoleClaims");
  60.                 });
  61.  
  62.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<string>", b =>
  63.                 {
  64.                     b.Property<int>("Id")
  65.                         .ValueGeneratedOnAdd();
  66.  
  67.                     b.Property<string>("ClaimType");
  68.  
  69.                     b.Property<string>("ClaimValue");
  70.  
  71.                     b.Property<string>("UserId");
  72.  
  73.                     b.Key("Id");
  74.  
  75.                     b.Annotation("Relational:TableName", "AspNetUserClaims");
  76.                 });
  77.  
  78.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin<string>", b =>
  79.                 {
  80.                     b.Property<string>("LoginProvider");
  81.  
  82.                     b.Property<string>("ProviderKey");
  83.  
  84.                     b.Property<string>("ProviderDisplayName");
  85.  
  86.                     b.Property<string>("UserId");
  87.  
  88.                     b.Key("LoginProvider", "ProviderKey");
  89.  
  90.                     b.Annotation("Relational:TableName", "AspNetUserLogins");
  91.                 });
  92.  
  93.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<string>", b =>
  94.                 {
  95.                     b.Property<string>("UserId");
  96.  
  97.                     b.Property<string>("RoleId");
  98.  
  99.                     b.Key("UserId", "RoleId");
  100.  
  101.                     b.Annotation("Relational:TableName", "AspNetUserRoles");
  102.                 });
  103.  
  104.             modelBuilder.Entity("WebApplication2.Models.ApplicationUser", b =>
  105.                 {
  106.                     b.Property<string>("Id");
  107.  
  108.                     b.Property<int>("AccessFailedCount");
  109.  
  110.                     b.Property<string>("ConcurrencyStamp")
  111.                         .ConcurrencyToken();
  112.  
  113.                     b.Property<string>("Email")
  114.                         .Annotation("MaxLength", 256);
  115.  
  116.                     b.Property<bool>("EmailConfirmed");
  117.  
  118.                     b.Property<bool>("LockoutEnabled");
  119.  
  120.                     b.Property<DateTimeOffset?>("LockoutEnd");
  121.  
  122.                     b.Property<string>("NormalizedEmail")
  123.                         .Annotation("MaxLength", 256);
  124.  
  125.                     b.Property<string>("NormalizedUserName")
  126.                         .Annotation("MaxLength", 256);
  127.  
  128.                     b.Property<string>("PasswordHash");
  129.  
  130.                     b.Property<string>("PhoneNumber");
  131.  
  132.                     b.Property<bool>("PhoneNumberConfirmed");
  133.  
  134.                     b.Property<string>("SecurityStamp");
  135.  
  136.                     b.Property<bool>("TwoFactorEnabled");
  137.  
  138.                     b.Property<string>("UserName")
  139.                         .Annotation("MaxLength", 256);
  140.  
  141.                     b.Key("Id");
  142.  
  143.                     b.Index("NormalizedEmail")
  144.                         .Annotation("Relational:Name", "EmailIndex");
  145.  
  146.                     b.Index("NormalizedUserName")
  147.                         .Annotation("Relational:Name", "UserNameIndex");
  148.  
  149.                     b.Annotation("Relational:TableName", "AspNetUsers");
  150.                 });
  151.  
  152.             modelBuilder.Entity("WebApplication2.Models.Building", b =>
  153.                 {
  154.                     b.Property<Guid>("Id")
  155.                         .ValueGeneratedOnAdd();
  156.  
  157.                     b.Property<string>("Address");
  158.  
  159.                     b.Property<Guid>("ApplicationUserId");
  160.  
  161.                     b.Property<string>("ApplicationUserId1");
  162.  
  163.                     b.Key("Id");
  164.                 });
  165.  
  166.             modelBuilder.Entity("WebApplication2.Models.City", b =>
  167.                 {
  168.                     b.Property<Guid>("Id")
  169.                         .ValueGeneratedOnAdd();
  170.  
  171.                     b.Property<Guid>("ApplicationUserId");
  172.  
  173.                     b.Property<string>("ApplicationUserId1");
  174.  
  175.                     b.Property<string>("Name");
  176.  
  177.                     b.Key("Id");
  178.                 });
  179.  
  180.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim<string>", b =>
  181.                 {
  182.                     b.Reference("Microsoft.AspNet.Identity.EntityFramework.IdentityRole")
  183.                         .InverseCollection()
  184.                         .ForeignKey("RoleId");
  185.                 });
  186.  
  187.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim<string>", b =>
  188.                 {
  189.                     b.Reference("WebApplication2.Models.ApplicationUser")
  190.                         .InverseCollection()
  191.                         .ForeignKey("UserId");
  192.                 });
  193.  
  194.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin<string>", b =>
  195.                 {
  196.                     b.Reference("WebApplication2.Models.ApplicationUser")
  197.                         .InverseCollection()
  198.                         .ForeignKey("UserId");
  199.                 });
  200.  
  201.             modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole<string>", b =>
  202.                 {
  203.                     b.Reference("Microsoft.AspNet.Identity.EntityFramework.IdentityRole")
  204.                         .InverseCollection()
  205.                         .ForeignKey("RoleId");
  206.  
  207.                     b.Reference("WebApplication2.Models.ApplicationUser")
  208.                         .InverseCollection()
  209.                         .ForeignKey("UserId");
  210.                 });
  211.  
  212.             modelBuilder.Entity("WebApplication2.Models.Building", b =>
  213.                 {
  214.                     b.Reference("WebApplication2.Models.ApplicationUser")
  215.                         .InverseCollection()
  216.                         .ForeignKey("ApplicationUserId1");
  217.                 });
  218.  
  219.             modelBuilder.Entity("WebApplication2.Models.City", b =>
  220.                 {
  221.                     b.Reference("WebApplication2.Models.ApplicationUser")
  222.                         .InverseCollection()
  223.                         .ForeignKey("ApplicationUserId1");
  224.                 });
  225.         }
  226.     }
  227. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement