Procházet zdrojové kódy

Removed files

master
Siegfried Dorn před 3 roky
rodič
revize
016fdf214c
8 změnil soubory, kde provedl 0 přidání a 681 odebrání
  1. +0
    -86
      EF_Code_First/Migrations/20220312173822_V0.0.Designer.cs
  2. +0
    -64
      EF_Code_First/Migrations/20220312173822_V0.0.cs
  3. +0
    -88
      EF_Code_First/Migrations/20220313151637_V0.2.Designer.cs
  4. +0
    -64
      EF_Code_First/Migrations/20220313151637_V0.2.cs
  5. +0
    -93
      EF_Code_First/Migrations/20220313154925_V0.3.Designer.cs
  6. +0
    -89
      EF_Code_First/Migrations/20220313154925_V0.3.cs
  7. +0
    -91
      EF_Code_First/Migrations/SC_DbContextModelSnapshot.cs
  8. +0
    -106
      EF_Code_First/SC_DbContext.dgml

+ 0
- 86
EF_Code_First/Migrations/20220312173822_V0.0.Designer.cs Zobrazit soubor

@@ -1,86 +0,0 @@
// <auto-generated />
using System;
using EF_Code_First.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

#nullable disable

namespace EF_Code_First.Migrations
{
[DbContext(typeof(SC_DbContext))]
[Migration("20220312173822_V0.0")]
partial class V00
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.3");

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Property<int>("GradeId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");

b.Property<string>("GradeName")
.HasColumnType("TEXT");

b.Property<string>("Section")
.HasColumnType("TEXT");

b.HasKey("GradeId");

b.ToTable("Grade", (string)null);
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.Property<int>("StudentId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");

b.Property<DateTime?>("DateOfBirth")
.HasColumnType("TEXT");

b.Property<int>("GradeId")
.HasColumnType("INTEGER");

b.Property<decimal?>("Height")
.HasColumnType("TEXT");

b.Property<byte[]>("Photo")
.HasColumnType("BLOB");

b.Property<string>("StudentName")
.HasColumnType("TEXT");

b.Property<float?>("Weight")
.HasColumnType("REAL");

b.HasKey("StudentId");

b.HasIndex("GradeId");

b.ToTable("Students", (string)null);
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.HasOne("EF_Code_First.Models.Grade", "Grade")
.WithMany("Students")
.HasForeignKey("GradeId");

b.Navigation("Grade");
});

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Navigation("Students");
});
#pragma warning restore 612, 618
}
}
}

+ 0
- 64
EF_Code_First/Migrations/20220312173822_V0.0.cs Zobrazit soubor

@@ -1,64 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EF_Code_First.Migrations
{
public partial class V00 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Grade",
columns: table => new
{
GradeId = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
GradeName = table.Column<string>(type: "TEXT", nullable: true),
Section = table.Column<string>(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Grade", x => x.GradeId);
});

migrationBuilder.CreateTable(
name: "Students",
columns: table => new
{
StudentId = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
StudentName = table.Column<string>(type: "TEXT", nullable: true),
DateOfBirth = table.Column<DateTime>(type: "TEXT", nullable: true),
Photo = table.Column<byte[]>(type: "BLOB", nullable: true),
Height = table.Column<decimal>(type: "TEXT", nullable: true),
Weight = table.Column<float>(type: "REAL", nullable: true),
GradeId = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Students", x => x.StudentId);
table.ForeignKey(
name: "FK_Students_Grade_GradeId",
column: x => x.GradeId,
principalTable: "Grade",
principalColumn: "GradeId");
});

migrationBuilder.CreateIndex(
name: "IX_Students_GradeId",
table: "Students",
column: "GradeId");
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Students");

migrationBuilder.DropTable(
name: "Grade");
}
}
}

+ 0
- 88
EF_Code_First/Migrations/20220313151637_V0.2.Designer.cs Zobrazit soubor

@@ -1,88 +0,0 @@
// <auto-generated />
using System;
using EF_Code_First.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

#nullable disable

namespace EF_Code_First.Migrations
{
[DbContext(typeof(SC_DbContext))]
[Migration("20220313151637_V0.2")]
partial class V02
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.3");

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Property<int>("GradeId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");

b.Property<string>("GradeName")
.HasColumnType("TEXT");

b.Property<string>("Section")
.HasColumnType("TEXT");

b.HasKey("GradeId");

b.ToTable("Grades");
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.Property<int>("StudentId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");

b.Property<DateTime?>("DateOfBirth")
.HasColumnType("TEXT");

b.Property<int>("GradeId")
.HasColumnType("INTEGER");

b.Property<decimal?>("Height")
.HasColumnType("TEXT");

b.Property<byte[]>("Photo")
.HasColumnType("BLOB");

b.Property<string>("StudentName")
.HasColumnType("TEXT");

b.Property<float?>("Weight")
.HasColumnType("REAL");

b.HasKey("StudentId");

b.HasIndex("GradeId");

b.ToTable("Students");
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.HasOne("EF_Code_First.Models.Grade", "Grade")
.WithMany("Students")
.HasForeignKey("GradeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();

b.Navigation("Grade");
});

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Navigation("Students");
});
#pragma warning restore 612, 618
}
}
}

+ 0
- 64
EF_Code_First/Migrations/20220313151637_V0.2.cs Zobrazit soubor

@@ -1,64 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EF_Code_First.Migrations
{
public partial class V02 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Students_Grade_GradeId",
table: "Students");

migrationBuilder.DropPrimaryKey(
name: "PK_Grade",
table: "Grade");

migrationBuilder.RenameTable(
name: "Grade",
newName: "Grades");

migrationBuilder.AddPrimaryKey(
name: "PK_Grades",
table: "Grades",
column: "GradeId");

migrationBuilder.AddForeignKey(
name: "FK_Students_Grades_GradeId",
table: "Students",
column: "GradeId",
principalTable: "Grades",
principalColumn: "GradeId",
onDelete: ReferentialAction.Cascade);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Students_Grades_GradeId",
table: "Students");

migrationBuilder.DropPrimaryKey(
name: "PK_Grades",
table: "Grades");

migrationBuilder.RenameTable(
name: "Grades",
newName: "Grade");

migrationBuilder.AddPrimaryKey(
name: "PK_Grade",
table: "Grade",
column: "GradeId");

migrationBuilder.AddForeignKey(
name: "FK_Students_Grade_GradeId",
table: "Students",
column: "GradeId",
principalTable: "Grade",
principalColumn: "GradeId");
}
}
}

+ 0
- 93
EF_Code_First/Migrations/20220313154925_V0.3.Designer.cs Zobrazit soubor

@@ -1,93 +0,0 @@
// <auto-generated />
using System;
using EF_Code_First.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

#nullable disable

namespace EF_Code_First.Migrations
{
[DbContext(typeof(SC_DbContext))]
[Migration("20220313154925_V0.3")]
partial class V03
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.3");

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Property<int>("GradeId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");

b.Property<string>("GradeName")
.HasColumnType("TEXT");

b.Property<string>("Section")
.HasColumnType("TEXT");

b.HasKey("GradeId");

b.ToTable("Grades");
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.Property<int>("StudentId")
.HasColumnType("INTEGER");

b.Property<DateTime?>("DateOfBirth")
.HasColumnType("TEXT");

b.Property<int>("G_Id")
.HasColumnType("INTEGER");

b.Property<decimal?>("Height")
.HasColumnType("TEXT");

b.Property<byte[]>("Photo")
.HasColumnType("BLOB");

b.Property<string>("StudentName")
.HasColumnType("TEXT");

b.Property<float?>("Weight")
.HasColumnType("REAL");

b.HasKey("StudentId");

b.HasIndex("G_Id");

b.ToTable("Students");
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.HasOne("EF_Code_First.Models.Grade", "Grade")
.WithMany()
.HasForeignKey("G_Id")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();

b.HasOne("EF_Code_First.Models.Grade", null)
.WithMany("Students")
.HasForeignKey("StudentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();

b.Navigation("Grade");
});

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Navigation("Students");
});
#pragma warning restore 612, 618
}
}
}

+ 0
- 89
EF_Code_First/Migrations/20220313154925_V0.3.cs Zobrazit soubor

@@ -1,89 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EF_Code_First.Migrations
{
public partial class V03 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Students_Grades_GradeId",
table: "Students");

migrationBuilder.RenameColumn(
name: "GradeId",
table: "Students",
newName: "G_Id");

migrationBuilder.RenameIndex(
name: "IX_Students_GradeId",
table: "Students",
newName: "IX_Students_G_Id");

migrationBuilder.AlterColumn<int>(
name: "StudentId",
table: "Students",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER")
.OldAnnotation("Sqlite:Autoincrement", true);

migrationBuilder.AddForeignKey(
name: "FK_Students_Grades_G_Id",
table: "Students",
column: "G_Id",
principalTable: "Grades",
principalColumn: "GradeId",
onDelete: ReferentialAction.Cascade);

migrationBuilder.AddForeignKey(
name: "FK_Students_Grades_StudentId",
table: "Students",
column: "StudentId",
principalTable: "Grades",
principalColumn: "GradeId",
onDelete: ReferentialAction.Cascade);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Students_Grades_G_Id",
table: "Students");

migrationBuilder.DropForeignKey(
name: "FK_Students_Grades_StudentId",
table: "Students");

migrationBuilder.RenameColumn(
name: "G_Id",
table: "Students",
newName: "GradeId");

migrationBuilder.RenameIndex(
name: "IX_Students_G_Id",
table: "Students",
newName: "IX_Students_GradeId");

migrationBuilder.AlterColumn<int>(
name: "StudentId",
table: "Students",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER")
.Annotation("Sqlite:Autoincrement", true);

migrationBuilder.AddForeignKey(
name: "FK_Students_Grades_GradeId",
table: "Students",
column: "GradeId",
principalTable: "Grades",
principalColumn: "GradeId",
onDelete: ReferentialAction.Cascade);
}
}
}

+ 0
- 91
EF_Code_First/Migrations/SC_DbContextModelSnapshot.cs Zobrazit soubor

@@ -1,91 +0,0 @@
// <auto-generated />
using System;
using EF_Code_First.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

#nullable disable

namespace EF_Code_First.Migrations
{
[DbContext(typeof(SC_DbContext))]
partial class SC_DbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.3");

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Property<int>("GradeId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");

b.Property<string>("GradeName")
.HasColumnType("TEXT");

b.Property<string>("Section")
.HasColumnType("TEXT");

b.HasKey("GradeId");

b.ToTable("Grades");
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.Property<int>("StudentId")
.HasColumnType("INTEGER");

b.Property<DateTime?>("DateOfBirth")
.HasColumnType("TEXT");

b.Property<int>("G_Id")
.HasColumnType("INTEGER");

b.Property<decimal?>("Height")
.HasColumnType("TEXT");

b.Property<byte[]>("Photo")
.HasColumnType("BLOB");

b.Property<string>("StudentName")
.HasColumnType("TEXT");

b.Property<float?>("Weight")
.HasColumnType("REAL");

b.HasKey("StudentId");

b.HasIndex("G_Id");

b.ToTable("Students");
});

modelBuilder.Entity("EF_Code_First.Models.Student", b =>
{
b.HasOne("EF_Code_First.Models.Grade", "Grade")
.WithMany()
.HasForeignKey("G_Id")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();

b.HasOne("EF_Code_First.Models.Grade", null)
.WithMany("Students")
.HasForeignKey("StudentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();

b.Navigation("Grade");
});

modelBuilder.Entity("EF_Code_First.Models.Grade", b =>
{
b.Navigation("Students");
});
#pragma warning restore 612, 618
}
}
}

+ 0
- 106
EF_Code_First/SC_DbContext.dgml Zobrazit soubor

@@ -1,106 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<DirectedGraph GraphDirection="LeftToRight" xmlns="http://schemas.microsoft.com/vs/2009/dgml">
<Nodes>
<Node Id="IModel" Label="SC_DbContext" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" PropertyAccessMode="PropertyAccessMode.Default" ProductVersion="6.0.3" Annotations="BaseTypeDiscoveryConvention:DerivedTypes: System.Collections.Generic.Dictionary`2[System.Type,System.Collections.Generic.List`1[Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType]]
RelationshipDiscoveryConvention:InverseNavigationCandidates: System.Collections.Generic.Dictionary`2[System.Type,System.Collections.Generic.SortedSet`1[System.Type]]" Category="Model" Group="Expanded" />
<Node Id = "Grade" Label="Grade" Name="Grade" BaseClass="" IsAbstract="False" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Annotations="Relational:TableName: Grades
RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" Category="EntityType" Group="Expanded" />
<Node Id = "Student" Label="Student" Name="Student" BaseClass="" IsAbstract="False" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Annotations="Relational:TableName: Students
RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" Category="EntityType" Group="Expanded" />
<Node Id = "Grade.GradeId" Label="GradeId" Name="GradeId" Category="Property Primary" Type="int" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="True" IsForeignKey="False" IsRequired="True" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id = "Grade.Students" Label="Students (*)" Name="Students" Category="Navigation Collection" Type="ICollection&lt;Student&gt;" Field="" Dependent="Student" Principal="" Inverse="" PropertyAccessMode="PropertyAccessMode.Default" />
<Node Id = "Grade.GradeName" Label="GradeName" Name="GradeName" Category="Property Optional" Type="string" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Grade.Section" Label="Section" Name="Section" Category="Property Optional" Type="string" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student" Label="Student" Name="Student" BaseClass="" IsAbstract="False" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Annotations="" Category="EntityType" Group="Expanded" />
<Node Id = "Student.StudentId" Label="StudentId" Name="StudentId" Category="Property Primary" Type="int" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="True" IsForeignKey="True" IsRequired="True" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student.Grade" Label="Grade (1)" Name="Grade" Category="Navigation Property" Type="Grade" Field="" Dependent="" Principal="Grade" Inverse="" PropertyAccessMode="PropertyAccessMode.Default" />
<Node Id = "Student.DateOfBirth" Label="DateOfBirth" Name="DateOfBirth" Category="Property Optional" Type="DateTime?" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student.G_Id" Label="G_Id" Name="G_Id" Category="Property Foreign" Type="int" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="True" IsRequired="True" IsIndexed="True" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student.Height" Label="Height" Name="Height" Category="Property Optional" Type="decimal?" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student.Photo" Label="Photo" Name="Photo" Category="Property Optional" Type="byte[]" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student.StudentName" Label="StudentName" Name="StudentName" Category="Property Optional" Type="string" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
<Node Id = "Student.Weight" Label="Weight" Name="Weight" Category="Property Optional" Type="float?" MaxLength="None" Field="" PropertyAccessMode="PropertyAccessMode.Default" BeforeSaveBehavior="PropertySaveBehavior.Save" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="" IsPrimaryKey="False" IsForeignKey="False" IsRequired="False" IsIndexed="False" IsShadow="False" IsAlternateKey="False" IsConcurrencyToken="False" IsUnicode="True" ValueGenerated="None" />
</Nodes>
<Links>
<Link Source = "IModel" Target="Grade" Category="Contains" />
<Link Source = "IModel" Target="Student" Category="Contains" />
<Link Source = "Grade" Target="Grade.Students" Category="Contains" />
<Link Source = "Grade" Target="Grade.GradeId" Category="Contains" />
<Link Source = "Grade" Target="Grade.GradeName" Category="Contains" />
<Link Source = "Grade" Target="Grade.Section" Category="Contains" />
<Link Source = "IModel" Target="Student" Category="Contains" />
<Link Source = "Student" Target="Student.Grade" Category="Contains" />
<Link Source = "Student" Target="Student.StudentId" Category="Contains" />
<Link Source="Student" Target="Grade" From="Student.G_Id" To="Grade.GradeId" Name="Student -> Grade" Annotations="" IsUnique="False" Label="1:*" Category="Foreign Key" />
<Link Source="Student" Target="Grade" From="Student.StudentId" To="Grade.GradeId" Name="Student -> Grade" Annotations="" IsUnique="False" Label="1:*" Category="Foreign Key" />
<Link Source = "Student" Target="Student.DateOfBirth" Category="Contains" />
<Link Source = "Student" Target="Student.G_Id" Category="Contains" />
<Link Source = "Student" Target="Student.Height" Category="Contains" />
<Link Source = "Student" Target="Student.Photo" Category="Contains" />
<Link Source = "Student" Target="Student.StudentName" Category="Contains" />
<Link Source = "Student" Target="Student.Weight" Category="Contains" />
</Links>
<Styles>
<Style TargetType="Node" GroupLabel="EntityType" ValueLabel="True">
<Condition Expression="HasCategory('EntityType')" />
<Setter Property="Background" Value="#FFC0C0C0" />
</Style>
<Style TargetType="Node" GroupLabel="Property Primary" ValueLabel="True">
<Condition Expression="HasCategory('Property Primary')" />
<Setter Property="Background" Value="#FF008000" />
</Style>
<Style TargetType="Node" GroupLabel="Property Optional" ValueLabel="True">
<Condition Expression="HasCategory('Property Optional')" />
<Setter Property="Background" Value="#FF808040" />
</Style>
<Style TargetType="Node" GroupLabel="Property Foreign" ValueLabel="True">
<Condition Expression="HasCategory('Property Foreign')" />
<Setter Property="Background" Value="#FF8080FF" />
</Style>
<Style TargetType="Node" GroupLabel="Property Required" ValueLabel="True">
<Condition Expression="HasCategory('Property Required')" />
<Setter Property="Background" Value="#FFC0A000" />
</Style>
<Style TargetType="Node" GroupLabel="Navigation Property" ValueLabel="True">
<Condition Expression="HasCategory('Navigation Property')" />
<Setter Property="Background" Value="#FF990000" />
</Style>
<Style TargetType="Node" GroupLabel="Navigation Collection" ValueLabel="True">
<Condition Expression="HasCategory('Navigation Collection')" />
<Setter Property="Background" Value="#FFFF3232" />
</Style>
<Style TargetType="Node" GroupLabel="Model" ValueLabel="True">
<Condition Expression="HasCategory('Model')" />
<Setter Property="Background" Value="#FFFFFFFF" />
</Style>
</Styles>
<Properties>
<Property Id="Name" Group="Model Properties" DataType="System.String" />
<Property Id="Field" Description="Backing field" Group="Model Properties" DataType="System.String" />
<Property Id="Type" Description="CLR data type" Group="Model Properties" DataType="System.String" />
<Property Id="To" Description="Source property" Group="Model Properties" DataType="System.String" />
<Property Id="From" Description="Target property" Group="Model Properties" DataType="System.String" />
<Property Id="Dependent" Description="Dependent entity" Group="Model Properties" DataType="System.String" />
<Property Id="Inverse" Description="Inverse entity" Group="Model Properties" DataType="System.String" />
<Property Id="Principal" Description="Principal entity" Group="Model Properties" DataType="System.String" />
<Property Id="Annotations" Description="Annotations" Group="Model Properties" DataType="System.String" />
<Property Id="BaseClass" Description="Base class" Group="Model Properties" DataType="System.String" />
<Property Id="ChangeTrackingStrategy" Description="Change tracking strategy" Group="Model Properties" DataType="System.String" />
<Property Id="IsUnique" Group="Model Properties" DataType="System.Boolean" />
<Property Id="IsAbstract" Group="Model Properties" DataType="System.Boolean" />
<Property Id="ProductVersion" Label="Product Version" Description="EF Core product version" Group="Model Properties" DataType="System.String" />
<Property Id="IsIndexed" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsRequired" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsPrimaryKey" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsForeignKey" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsShadow" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsAlternateKey" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsConcurrencyToken" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsIndexed" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsUnicode" Group="Property Flags" DataType="System.Boolean" />
<Property Id="ValueGenerated" Group="Property Flags" DataType="System.String" />
<Property Id="BeforeSaveBehavior" Group="Property Flags" DataType="System.String" />
<Property Id="AfterSaveBehavior" Group="Property Flags" DataType="System.String" />
<Property Id="PropertyAccessMode" Group="Property Flags" DataType="System.String" />
</Properties>
</DirectedGraph>

Načítá se…
Zrušit
Uložit