mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.1 KiB
69 lines
2.1 KiB
// <auto-generated />
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage;
|
|
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
|
using System;
|
|
using Volo.Abp.TestApp.Domain;
|
|
using Volo.Abp.TestApp.EntityFrameworkCore;
|
|
|
|
namespace Volo.Abp.EntityFrameworkCore.Tests.Migrations
|
|
{
|
|
[DbContext(typeof(TestAppDbContext))]
|
|
partial class TestAppDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
|
|
|
|
modelBuilder.Entity("Volo.Abp.TestApp.Domain.Person", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<int>("Age");
|
|
|
|
b.Property<bool>("IsDeleted");
|
|
|
|
b.Property<string>("Name");
|
|
|
|
b.Property<Guid?>("TenantId");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("People");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.TestApp.Domain.Phone", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("Number");
|
|
|
|
b.Property<Guid>("PersonId");
|
|
|
|
b.Property<int>("Type");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PersonId");
|
|
|
|
b.ToTable("AppPhones");
|
|
});
|
|
|
|
modelBuilder.Entity("Volo.Abp.TestApp.Domain.Phone", b =>
|
|
{
|
|
b.HasOne("Volo.Abp.TestApp.Domain.Person")
|
|
.WithMany("Phones")
|
|
.HasForeignKey("PersonId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|