Add project files.

This commit is contained in:
Marcus Ferl 2023-07-08 19:43:36 +02:00
parent 4514ef2146
commit 913018a20a
11 changed files with 551 additions and 0 deletions

25
Weiferl.Databas.EF.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33815.320
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Weiferl.Databas.EF", "Weiferl.Databas.EF\Weiferl.Databas.EF.csproj", "{E87E3BA2-3FCB-48BC-B3F3-634C6C962AB8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E87E3BA2-3FCB-48BC-B3F3-634C6C962AB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E87E3BA2-3FCB-48BC-B3F3-634C6C962AB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E87E3BA2-3FCB-48BC-B3F3-634C6C962AB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E87E3BA2-3FCB-48BC-B3F3-634C6C962AB8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {569C8BC9-73F7-4EAF-9461-AAC63B64CD90}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,178 @@
<?xml version="1.0" encoding="utf-8"?>
<DirectedGraph GraphDirection="LeftToRight" xmlns="http://schemas.microsoft.com/vs/2009/dgml">
<Nodes>
<Node Id="Cpu" Category="EntityType" Annotations="Relational:Schema: Relational:TableName: cpus RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" BaseClass="" Bounds="-20.253323771159,6.00017553090618,347.276649373372,253.8405" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Cpu" Name="Cpu" />
<Node Id="Cpu.CpuId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Cpu_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.253323771158989,46.0006798938745,75.8233333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="CpuId (int)" MaxLength="None" Name="CpuId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id="Cpu.Hersteller" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 10" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.25332316080744,213.88068096199,111.293333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Hersteller (string)" MaxLength="(10)" Name="Hersteller" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Cpu.KatName" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50 Relational:ColumnName: Kat_Name" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="131.966664632161,157.920681877517,109.453333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="KatName (string)" MaxLength="(50)" Name="KatName" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Cpu.Kerne" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="105.570004882812,46.0006798938745,79.99,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Kerne (int?)" MaxLength="None" Name="Kerne" PropertyAccessMode="PropertyAccessMode.Default" Type="int?" ValueGenerated="None" />
<Node Id="Cpu.Modell" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="124.463367716471,101.960690422439,97.5866666666666,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Modell (string)" MaxLength="(50)" Name="Modell" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Cpu.Preis" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Precision: 8 Scale: 2" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.253323364257994,157.920681877517,102.22,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Preis (decimal?)" MaxLength="None" Name="Preis" PropertyAccessMode="PropertyAccessMode.Default" Type="decimal?" ValueGenerated="None" />
<Node Id="Cpu.Sockel" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.253319905599142,101.960690422439,94.7166666666667,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Sockel (string)" MaxLength="(50)" Name="Sockel" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Cpu.Threads" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="215.55999226888,46.0006798938745,91.4633333333334,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Threads (int?)" MaxLength="None" Name="Threads" PropertyAccessMode="PropertyAccessMode.Default" Type="int?" ValueGenerated="None" />
<Node Id="Festplatten" Category="EntityType" Annotations="Relational:Schema: Relational:TableName: festplatten RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" BaseClass="" Bounds="357.023305257161,6.00048406460699,290.746715901693,197.880400000004" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Festplatten" Name="Festplatten" />
<Node Id="Festplatten.FestpId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Festp_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="488.933364257812,46.0006798938745,82.9,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="FestpId (int)" MaxLength="None" Name="FestpId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id="Festplatten.Größe" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="377.023334960937,46.0006798938745,81.91,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Größe (int?)" MaxLength="None" Name="Größe" PropertyAccessMode="PropertyAccessMode.Default" Type="int?" ValueGenerated="None" />
<Node Id="Festplatten.Hersteller" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 100" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="516.476687825521,157.920681877517,111.293333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Hersteller (string)" MaxLength="(100)" Name="Hersteller" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Festplatten.KatName" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50 Relational:ColumnName: Kat_Name" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="377.023305257161,157.920681877517,109.453333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="KatName (string)" MaxLength="(50)" Name="KatName" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Festplatten.Modell" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 100" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="377.023319498698,101.960690422439,97.5866666666667,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Modell (string)" MaxLength="(100)" Name="Modell" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Festplatten.Preis" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Precision: 8 Scale: 2" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="504.609973144531,101.960690422439,102.22,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Preis (decimal?)" MaxLength="None" Name="Preis" PropertyAccessMode="PropertyAccessMode.Default" Type="decimal?" ValueGenerated="None" />
<Node Id="Grafikkarten" Category="EntityType" Annotations="Relational:Schema: Relational:TableName: grafikkarten RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" BaseClass="" Bounds="-340.999998423259,289.840690246582,290.746673634847,197.8804" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Grafikkarten" Name="Grafikkarten" />
<Node Id="Grafikkarten.Chip" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 10" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-217.936660257975,329.840672417068,84.8033333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Chip (string)" MaxLength="(10)" Name="Chip" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Grafikkarten.GraId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Gra_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.999998423259,329.840672417068,73.0633333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="GraId (int)" MaxLength="None" Name="GraId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id="Grafikkarten.Hersteller" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 100" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-181.546658121745,441.760685844802,111.293333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Hersteller (string)" MaxLength="(100)" Name="Hersteller" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Grafikkarten.KatName" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50 Relational:ColumnName: Kat_Name" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.999994913737,441.760685844802,109.453333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="KatName (string)" MaxLength="(50)" Name="KatName" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Grafikkarten.Modell" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 100" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.99999593099,385.800663872146,97.5866666666667,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Modell (string)" MaxLength="(100)" Name="Modell" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Grafikkarten.Preis" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Precision: 8 Scale: 2" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-193.413327026367,385.800663872146,102.22,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Preis (decimal?)" MaxLength="None" Name="Preis" PropertyAccessMode="PropertyAccessMode.Default" Type="decimal?" ValueGenerated="None" />
<Node Id="Hersteller" Category="EntityType" Annotations="Relational:Schema: Relational:TableName: hersteller RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" BaseClass="" Bounds="-340.999999237061,517.721121972656,157.763336435954,141.9203" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Hersteller" Name="Hersteller" />
<Node Id="Hersteller.HerId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Her_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.999999237061,557.720662041091,73.52,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="HerId (int)" MaxLength="None" Name="HerId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id="Hersteller.Hersteller1" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 100 Relational:ColumnName: Hersteller" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.99999613444,613.680684013748,117.763333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Hersteller1 (string)" MaxLength="(100)" Name="Hersteller1" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="IModel" Category="Model" Annotations="BaseTypeDiscoveryConvention:DerivedTypes: System.Collections.Generic.Dictionary`2[System.Type,System.Collections.Generic.List`1[Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType]] MySql:CharSet: utf8mb3 Relational:Collation: utf8mb3_general_ci Relational:MaxIdentifierLength: 64 RelationshipDiscoveryConvention:InverseNavigationCandidates: System.Collections.Generic.Dictionary`2[System.Type,System.Collections.Generic.SortedSet`1[System.Type]]" Bounds="-361,-34,1028.77,713.64" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" Label="HardwareShopContext" ProductVersion="7.0.8" PropertyAccessMode="PropertyAccessMode.Default" UseManualLocation="True" />
<Node Id="Kategorie" Category="EntityType" Annotations="Relational:Schema: Relational:TableName: kategorie RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" BaseClass="" Bounds="342.489980061849,289.840775530906,149.453333333333,141.9203" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Kategorie" Name="Kategorie" />
<Node Id="Kategorie.KatId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Kat_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="362.490000813802,329.840672417068,71.6833333333334,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="KatId (int)" MaxLength="None" Name="KatId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id="Kategorie.KatName" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50 Relational:ColumnName: Kat_Name" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="362.489980061849,385.800663872146,109.453333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="KatName (string)" MaxLength="(50)" Name="KatName" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Mainboard" Category="EntityType" Annotations="Relational:Schema: Relational:TableName: mainboard RelationshipDiscoveryConvention:NavigationCandidates: System.Collections.Immutable.ImmutableSortedDictionary`2[System.Reflection.PropertyInfo,System.ValueTuple`2[System.Type,System.Nullable`1[System.Boolean]]]" BaseClass="" Bounds="-341,6.00009024658202,290.746672043573,253.8405" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Mainboard" Name="Mainboard" />
<Node Id="Mainboard.Formfaktor" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 10" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-321,213.88068096199,119.12,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Formfaktor (string)" MaxLength="(10)" Name="Formfaktor" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Mainboard.Hersteller" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-181.546658121745,157.920681877517,111.293333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Hersteller (string)" MaxLength="(50)" Name="Hersteller" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Mainboard.KatName" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50 Relational:ColumnName: Kat_Name" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.999994913737,157.920681877517,109.453333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="KatName (string)" MaxLength="(50)" Name="KatName" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Mainboard.MainId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Main_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.999998931885,46.0006798938745,81.13,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="MainId (int)" MaxLength="None" Name="MainId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
<Node Id="Mainboard.Modell" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-320.99999593099,101.960690422439,97.5866666666667,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Modell (string)" MaxLength="(50)" Name="Modell" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Mainboard.Preis" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Precision: 8 Scale: 2" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-193.413327026367,101.960690422439,102.22,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Preis (decimal?)" MaxLength="None" Name="Preis" PropertyAccessMode="PropertyAccessMode.Default" Type="decimal?" ValueGenerated="None" />
<Node Id="Mainboard.Sockel" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 20" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-209.869988606771,46.0006798938745,94.7166666666667,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Sockel (string)" MaxLength="(20)" Name="Sockel" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Ram" Category="EntityType" Annotations="" BaseClass="" Bounds="-20.2533279564275,289.840765777488,332.743338419597,197.8804" ChangeTrackingStrategy="ChangeTrackingStrategy.Snapshot" Group="Expanded" IsAbstract="False" Label="Ram" Name="Ram" />
<Node Id="Ram.Größe" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="210.580006103516,329.840672417068,81.91,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Größe (int?)" MaxLength="None" Name="Größe" PropertyAccessMode="PropertyAccessMode.Default" Type="int?" ValueGenerated="None" />
<Node Id="Ram.Hersteller" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="139.200015462239,441.760685844802,111.293333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Hersteller (string)" MaxLength="(50)" Name="Hersteller" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Ram.KatName" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50 Relational:ColumnName: Kat_Name" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.253321329752794,441.760685844802,109.453333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="KatName (string)" MaxLength="(50)" Name="KatName" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Ram.Mhz" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.253325602213692,329.840672417068,72.6633333333333,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Mhz (int?)" MaxLength="None" Name="Mhz" PropertyAccessMode="PropertyAccessMode.Default" Type="int?" ValueGenerated="None" />
<Node Id="Ram.Modell" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="MaxLength: 50" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="-0.253322347005394,385.800663872146,97.5866666666667,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Modell (string)" MaxLength="(50)" Name="Modell" PropertyAccessMode="PropertyAccessMode.Default" Type="string" ValueGenerated="None" />
<Node Id="Ram.Preis" Category="Property Optional" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Precision: 8 Scale: 2" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="127.333346557617,385.800663872146,102.22,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="False" IsRequired="False" IsShadow="False" IsUnicode="True" Label="Preis (decimal?)" MaxLength="None" Name="Preis" PropertyAccessMode="PropertyAccessMode.Default" Type="decimal?" ValueGenerated="None" />
<Node Id="Ram.RamId" Category="Property Primary" AfterSaveBehavior="PropertySaveBehavior.Save" Annotations="Relational:ColumnName: Ram_ID Relational:ColumnType: int(11)" BeforeSaveBehavior="PropertySaveBehavior.Save" Bounds="102.410012817383,329.840672417068,78.17,25.96" Field="" IsAlternateKey="False" IsConcurrencyToken="False" IsForeignKey="False" IsIndexed="False" IsPrimaryKey="True" IsRequired="True" IsShadow="False" IsUnicode="True" Label="RamId (int)" MaxLength="None" Name="RamId" PropertyAccessMode="PropertyAccessMode.Default" Type="int" ValueGenerated="ValueGenerated.OnAdd" />
</Nodes>
<Links>
<Link Source="Cpu" Target="Cpu.CpuId" Category="Contains" />
<Link Source="Cpu" Target="Cpu.Hersteller" Category="Contains" />
<Link Source="Cpu" Target="Cpu.KatName" Category="Contains" />
<Link Source="Cpu" Target="Cpu.Kerne" Category="Contains" />
<Link Source="Cpu" Target="Cpu.Modell" Category="Contains" />
<Link Source="Cpu" Target="Cpu.Preis" Category="Contains" />
<Link Source="Cpu" Target="Cpu.Sockel" Category="Contains" />
<Link Source="Cpu" Target="Cpu.Threads" Category="Contains" />
<Link Source="Festplatten" Target="Festplatten.FestpId" Category="Contains" />
<Link Source="Festplatten" Target="Festplatten.Größe" Category="Contains" />
<Link Source="Festplatten" Target="Festplatten.Hersteller" Category="Contains" />
<Link Source="Festplatten" Target="Festplatten.KatName" Category="Contains" />
<Link Source="Festplatten" Target="Festplatten.Modell" Category="Contains" />
<Link Source="Festplatten" Target="Festplatten.Preis" Category="Contains" />
<Link Source="Grafikkarten" Target="Grafikkarten.Chip" Category="Contains" />
<Link Source="Grafikkarten" Target="Grafikkarten.GraId" Category="Contains" />
<Link Source="Grafikkarten" Target="Grafikkarten.Hersteller" Category="Contains" />
<Link Source="Grafikkarten" Target="Grafikkarten.KatName" Category="Contains" />
<Link Source="Grafikkarten" Target="Grafikkarten.Modell" Category="Contains" />
<Link Source="Grafikkarten" Target="Grafikkarten.Preis" Category="Contains" />
<Link Source="Hersteller" Target="Hersteller.HerId" Category="Contains" />
<Link Source="Hersteller" Target="Hersteller.Hersteller1" Category="Contains" />
<Link Source="IModel" Target="Cpu" Category="Contains" />
<Link Source="IModel" Target="Festplatten" Category="Contains" />
<Link Source="IModel" Target="Grafikkarten" Category="Contains" />
<Link Source="IModel" Target="Hersteller" Category="Contains" />
<Link Source="IModel" Target="Kategorie" Category="Contains" />
<Link Source="IModel" Target="Mainboard" Category="Contains" />
<Link Source="IModel" Target="Ram" Category="Contains" />
<Link Source="Kategorie" Target="Kategorie.KatId" Category="Contains" />
<Link Source="Kategorie" Target="Kategorie.KatName" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.Formfaktor" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.Hersteller" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.KatName" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.MainId" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.Modell" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.Preis" Category="Contains" />
<Link Source="Mainboard" Target="Mainboard.Sockel" Category="Contains" />
<Link Source="Ram" Target="Ram.Größe" Category="Contains" />
<Link Source="Ram" Target="Ram.Hersteller" Category="Contains" />
<Link Source="Ram" Target="Ram.KatName" Category="Contains" />
<Link Source="Ram" Target="Ram.Mhz" Category="Contains" />
<Link Source="Ram" Target="Ram.Modell" Category="Contains" />
<Link Source="Ram" Target="Ram.Preis" Category="Contains" />
<Link Source="Ram" Target="Ram.RamId" Category="Contains" />
</Links>
<Categories>
<Category Id="Contains" Label="Contains" Description="Whether the source of the link contains the target object" CanBeDataDriven="False" CanLinkedNodesBeDataDriven="True" IncomingActionLabel="Contained By" IsContainment="True" OutgoingActionLabel="Contains" />
<Category Id="EntityType" />
<Category Id="Model" />
<Category Id="Property Optional" />
<Category Id="Property Primary" />
</Categories>
<Properties>
<Property Id="AfterSaveBehavior" Group="Property Flags" 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="BeforeSaveBehavior" Group="Property Flags" DataType="System.String" />
<Property Id="Bounds" DataType="System.Windows.Rect" />
<Property Id="CanBeDataDriven" Label="CanBeDataDriven" Description="CanBeDataDriven" DataType="System.Boolean" />
<Property Id="CanLinkedNodesBeDataDriven" Label="CanLinkedNodesBeDataDriven" Description="CanLinkedNodesBeDataDriven" DataType="System.Boolean" />
<Property Id="ChangeTrackingStrategy" Description="Change tracking strategy" Group="Model Properties" DataType="System.String" />
<Property Id="Expression" DataType="System.String" />
<Property Id="Field" Description="Backing field" Group="Model Properties" DataType="System.String" />
<Property Id="GraphDirection" DataType="Microsoft.VisualStudio.Diagrams.Layout.LayoutOrientation" />
<Property Id="Group" Label="Group" Description="Display the node as a group" DataType="Microsoft.VisualStudio.GraphModel.GraphGroupStyle" />
<Property Id="GroupLabel" DataType="System.String" />
<Property Id="IncomingActionLabel" Label="IncomingActionLabel" Description="IncomingActionLabel" DataType="System.String" />
<Property Id="IsAbstract" Label="IsAbstract" Description="IsAbstract" Group="Model Properties" DataType="System.Boolean" />
<Property Id="IsAlternateKey" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsConcurrencyToken" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsContainment" DataType="System.Boolean" />
<Property Id="IsEnabled" DataType="System.Boolean" />
<Property Id="IsForeignKey" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsIndexed" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsPrimaryKey" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsRequired" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsShadow" Group="Property Flags" DataType="System.Boolean" />
<Property Id="IsUnicode" Group="Property Flags" DataType="System.Boolean" />
<Property Id="Label" Label="Label" Description="Displayable label of an Annotatable object" DataType="System.String" />
<Property Id="MaxLength" DataType="System.String" />
<Property Id="Name" Group="Model Properties" DataType="System.String" />
<Property Id="OutgoingActionLabel" Label="OutgoingActionLabel" Description="OutgoingActionLabel" DataType="System.String" />
<Property Id="ProductVersion" Label="Product Version" Description="EF Core product version" Group="Model Properties" DataType="System.String" />
<Property Id="PropertyAccessMode" Group="Property Flags" DataType="System.String" />
<Property Id="TargetType" DataType="System.Type" />
<Property Id="Type" Description="CLR data type" Group="Model Properties" DataType="System.String" />
<Property Id="UseManualLocation" DataType="System.Boolean" />
<Property Id="Value" DataType="System.String" />
<Property Id="ValueGenerated" Group="Property Flags" DataType="System.String" />
<Property Id="ValueLabel" DataType="System.String" />
</Properties>
<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>
</DirectedGraph>

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Cpu
{
public int CpuId { get; set; }
public string? KatName { get; set; }
public string? Hersteller { get; set; }
public string? Modell { get; set; }
public string? Sockel { get; set; }
public int? Kerne { get; set; }
public int? Threads { get; set; }
public decimal? Preis { get; set; }
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Festplatten
{
public int FestpId { get; set; }
public string? KatName { get; set; }
public string? Hersteller { get; set; }
public string? Modell { get; set; }
public int? Größe { get; set; }
public decimal? Preis { get; set; }
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Grafikkarten
{
public int GraId { get; set; }
public string? KatName { get; set; }
public string? Modell { get; set; }
public string? Hersteller { get; set; }
public string? Chip { get; set; }
public decimal? Preis { get; set; }
}

View File

@ -0,0 +1,168 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace Weiferl.Databas.EF.Models;
public partial class HardwareShopContext : DbContext
{
public HardwareShopContext()
{
}
public HardwareShopContext(DbContextOptions<HardwareShopContext> options)
: base(options)
{
}
public virtual DbSet<Cpu> Cpu { get; set; }
public virtual DbSet<Festplatten> Festplatten { get; set; }
public virtual DbSet<Grafikkarten> Grafikkarten { get; set; }
public virtual DbSet<Hersteller> Hersteller { get; set; }
public virtual DbSet<Kategorie> Kategorie { get; set; }
public virtual DbSet<Mainboard> Mainboard { get; set; }
public virtual DbSet<Ram> Ram { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseMySql("server=192.168.0.252;port=3306;database=hardware_shop;uid=root;pwd=op3iv2dbym", Microsoft.EntityFrameworkCore.ServerVersion.Parse("10.11.4-mariadb"));
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder
.UseCollation("utf8mb3_general_ci")
.HasCharSet("utf8mb3");
modelBuilder.Entity<Cpu>(entity =>
{
entity.HasKey(e => e.CpuId).HasName("PRIMARY");
entity.ToTable("cpus");
entity.Property(e => e.CpuId)
.HasColumnType("int(11)")
.HasColumnName("Cpu_ID");
entity.Property(e => e.Hersteller).HasMaxLength(10);
entity.Property(e => e.KatName)
.HasMaxLength(50)
.HasColumnName("Kat_Name");
entity.Property(e => e.Kerne).HasColumnType("int(11)");
entity.Property(e => e.Modell).HasMaxLength(50);
entity.Property(e => e.Preis).HasPrecision(8, 2);
entity.Property(e => e.Sockel).HasMaxLength(50);
entity.Property(e => e.Threads).HasColumnType("int(11)");
});
modelBuilder.Entity<Festplatten>(entity =>
{
entity.HasKey(e => e.FestpId).HasName("PRIMARY");
entity.ToTable("festplatten");
entity.Property(e => e.FestpId)
.HasColumnType("int(11)")
.HasColumnName("Festp_ID");
entity.Property(e => e.Größe).HasColumnType("int(11)");
entity.Property(e => e.Hersteller).HasMaxLength(100);
entity.Property(e => e.KatName)
.HasMaxLength(50)
.HasColumnName("Kat_Name");
entity.Property(e => e.Modell).HasMaxLength(100);
entity.Property(e => e.Preis).HasPrecision(8, 2);
});
modelBuilder.Entity<Grafikkarten>(entity =>
{
entity.HasKey(e => e.GraId).HasName("PRIMARY");
entity.ToTable("grafikkarten");
entity.Property(e => e.GraId)
.HasColumnType("int(11)")
.HasColumnName("Gra_ID");
entity.Property(e => e.Chip).HasMaxLength(10);
entity.Property(e => e.Hersteller).HasMaxLength(100);
entity.Property(e => e.KatName)
.HasMaxLength(50)
.HasColumnName("Kat_Name");
entity.Property(e => e.Modell).HasMaxLength(100);
entity.Property(e => e.Preis).HasPrecision(8, 2);
});
modelBuilder.Entity<Hersteller>(entity =>
{
entity.HasKey(e => e.HerId).HasName("PRIMARY");
entity.ToTable("hersteller");
entity.Property(e => e.HerId)
.HasColumnType("int(11)")
.HasColumnName("Her_ID");
entity.Property(e => e.Hersteller1)
.HasMaxLength(100)
.HasColumnName("Hersteller");
});
modelBuilder.Entity<Kategorie>(entity =>
{
entity.HasKey(e => e.KatId).HasName("PRIMARY");
entity.ToTable("kategorie");
entity.Property(e => e.KatId)
.HasColumnType("int(11)")
.HasColumnName("Kat_ID");
entity.Property(e => e.KatName)
.HasMaxLength(50)
.HasColumnName("Kat_Name");
});
modelBuilder.Entity<Mainboard>(entity =>
{
entity.HasKey(e => e.MainId).HasName("PRIMARY");
entity.ToTable("mainboard");
entity.Property(e => e.MainId)
.HasColumnType("int(11)")
.HasColumnName("Main_ID");
entity.Property(e => e.Formfaktor).HasMaxLength(10);
entity.Property(e => e.Hersteller).HasMaxLength(50);
entity.Property(e => e.KatName)
.HasMaxLength(50)
.HasColumnName("Kat_Name");
entity.Property(e => e.Modell).HasMaxLength(50);
entity.Property(e => e.Preis).HasPrecision(8, 2);
entity.Property(e => e.Sockel).HasMaxLength(20);
});
modelBuilder.Entity<Ram>(entity =>
{
entity.HasKey(e => e.RamId).HasName("PRIMARY");
entity.ToTable("ram");
entity.Property(e => e.RamId)
.HasColumnType("int(11)")
.HasColumnName("Ram_ID");
entity.Property(e => e.Größe).HasColumnType("int(11)");
entity.Property(e => e.Hersteller).HasMaxLength(50);
entity.Property(e => e.KatName)
.HasMaxLength(50)
.HasColumnName("Kat_Name");
entity.Property(e => e.Mhz).HasColumnType("int(11)");
entity.Property(e => e.Modell).HasMaxLength(50);
entity.Property(e => e.Preis).HasPrecision(8, 2);
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Hersteller
{
public int HerId { get; set; }
public string? Hersteller1 { get; set; }
}

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Kategorie
{
public int KatId { get; set; }
public string? KatName { get; set; }
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Mainboard
{
public int MainId { get; set; }
public string? KatName { get; set; }
public string? Hersteller { get; set; }
public string? Modell { get; set; }
public string? Sockel { get; set; }
public string? Formfaktor { get; set; }
public decimal? Preis { get; set; }
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Weiferl.Databas.EF.Models;
public partial class Ram
{
public int RamId { get; set; }
public string? KatName { get; set; }
public string? Hersteller { get; set; }
public string? Modell { get; set; }
public int? Mhz { get; set; }
public int? Größe { get; set; }
public decimal? Preis { get; set; }
}

View File

@ -0,0 +1,55 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Weiferl Database Ef</Title>
<Version>1.0.1</Version>
<VersionSuffix></VersionSuffix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EfCore.SchemaCompare" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MySql.EntityFrameworkCore" Version="7.0.2" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
</ItemGroup>
<Target Name="AutoIncrementVersion" BeforeTargets="Pack">
<PropertyGroup>
<Major>$(VersionMajor)</Major>
<Minor>$(VersionMinor)</Minor>
<Patch>$(VersionPatch)</Patch>
<VersionPrefix>$(Major).$(Minor).$(Patch)</VersionPrefix>
</PropertyGroup>
<!-- Erhöhe die Versionsnummer -->
<PropertyGroup Condition="'$(Major)' == '' or '$(Minor)' == '' or '$(Patch)' == ''">
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>0</VersionPatch>
</PropertyGroup>
<PropertyGroup>
<VersionPatch Condition="'$(PackageVersion)' != ''">$(VersionPatch + 1)</VersionPatch>
<VersionMinor Condition="'$(VersionPatch)' == '' or '$(PackageVersion)' == ''">$(Minor + 1)</VersionMinor>
<VersionMajor Condition="'$(VersionPatch)' == '' and '$(PackageVersion)' == ''">$(Major + 1)</VersionMajor>
</PropertyGroup>
<PropertyGroup>
<PackageVersion>$(VersionPrefix)</PackageVersion>
</PropertyGroup>
</Target>
</Project>