Advertisement
Guest User

ApplicationDbContextModelSnapshot.cs

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