<?xml version="1.0" encoding="utf-8"?>
<!--LLBLGen Pro v4.1 project file. Do not manually edit this file. Incorrect references could lead to an unloadable project file.-->
<Project Version="4.1" TargetFrameworkName="LLBLGen Pro Runtime Framework">
  <Properties>
    <Abbreviations />
    <Property Name="AdditionalTaskPerformerFolder" Value="" />
    <Property Name="AdditionalTasksFolder" Value="" />
    <Property Name="AdditionalTemplatesFolder" Value="" />
    <Property Name="AdditionalTypeConverterFolder" Value="" />
    <Property Name="AddNewElementsAfterRefresh" Value="0" />
    <Property Name="AddNewFieldsAfterRefresh" Value="0" />
    <Property Name="AddNewViewsAsEntitiesAfterRefresh" Value="0" />
    <Property Name="AutoAddManyToManyRelationships" Value="false" />
    <Property Name="AutoAssignSequencesToIntegerPks" Value="true" />
    <Property Name="AutoAssignTypeConverterToFieldMapping" Value="false" />
    <Property Name="CleanUpVsNetProjects" Value="true" />
    <Property Name="ConnectionStringKeyNamePattern" Value="ConnectionString.{$ProviderName}" />
    <Property Name="DefaultDeleteRuleAction" Value="1" />
    <Property Name="DefaultUpdateRuleAction" Value="0" />
    <Property Name="EncodingToUse" Value="0" />
    <Property Name="EnforcePascalCasingAlways" Value="true" />
    <Property Name="EntityFieldNameStripPattern" Value="{}{}" />
    <Property Name="EntityNameStripPattern" Value="{tbl_}{}" />
    <Property Name="ExcludableOrphanedElementDetectedAction" Value="3" />
    <Property Name="FailCodeGenerationOnWriteError" Value="false" />
    <Property Name="FieldMappedOntoRelatedFieldPattern" Value="{$RelatedFieldName}" />
    <Property Name="FkFieldsAreNamedAfterTargetField" Value="true" />
    <Property Name="ForeignKeyFieldPattern" Value="{$NavigatorName}{$RelatedFieldName}" />
    <Property Name="GroupUsage" Value="0" />
    <Property Name="IdentifyingFieldsFollowDBPrimaryKeyConstraints" Value="0" />
    <Property Name="InsertUnderscoreAtWordBreakCaseInsensitiveDBs" Value="false" />
    <Property Name="InsertUnderscoreAtWordBreakCaseSensitiveDBs" Value="false" />
    <Property Name="LengthPrecisionScaleFollowDBLengthPrecisionScale" Value="0" />
    <Property Name="MakeElementNamePascalCasing" Value="true" />
    <Property Name="NavigatorMappedOntoManyToManyPattern" Value="{$EndEntityName}CollectionVia{$IntermediateEntityName$S}" />
    <Property Name="NavigatorMappedOntoOneManyToOnePattern" Value="{$EndEntityName$S}" />
    <Property Name="NavigatorMappedOntoOneToManyPattern" Value="{$EndEntityName$P}" />
    <Property Name="NonExcludableOrphanedElementDetectedAction" Value="3" />
    <Property Name="PreferDecimalOverCurrencyTypes" Value="true" />
    <Property Name="PreferNaturalCharacterTypes" Value="true" />
    <Property Name="PreferSystemSequencesOverSchemaSequencesIfApplicable" Value="true" />
    <Property Name="PreferVariableLengthTypes" Value="true" />
    <Property Name="ProjectCreator" Value="Zdenek" />
    <Property Name="ProjectName" Value="LLBLGenRepository" />
    <Property Name="ReflectNullabilityOfElementFieldInTargetField" Value="0" />
    <Property Name="RelationalModelDataElementNameCasingCaseInsensitiveDBs" Value="3" />
    <Property Name="RelationalModelDataElementNameCasingCaseSensitiveDBs" Value="3" />
    <Property Name="RelationshipsFollowDBForeignKeyConstraints" Value="0" />
    <Property Name="RemoveUnderscoresFromElementName" Value="true" />
    <Property Name="RemoveUnmappedElementsAfterRefresh" Value="0" />
    <Property Name="ResetFieldOrderBasedOnTargetOrderAtRefresh" Value="false" />
    <Property Name="RetrieveDBCustomProperties" Value="false" />
    <Property Name="RootNamespace" Value="" />
    <Property Name="SequencePattern" Value="SEQ_{$EntityName}" />
    <Property Name="SetGroupNameAfterSchemaName" Value="true" />
    <Property Name="SetSchemaNameAfterGroupName" Value="true" />
    <Property Name="StoredProcNameStripPattern" Value="{pr_, sp_}{}" />
    <Property Name="StoreTimeLastGeneratedIntoProject" Value="false" />
    <Property Name="SyncMappedElementNamesAfterRefresh" Value="0" />
    <Property Name="SyncRelationalModelDataElementNameAfterRename" Value="0" />
    <Property Name="SyncRenamedMappedElementNamesAfterRefresh" Value="0" />
    <Property Name="TableValuedFunctionNameStripPattern" Value="{fn_, pr_, sp_}{}" />
    <Property Name="TargetPerEntityEdgesRequireBackingFkConstraint" Value="true" />
    <Property Name="TypedViewFieldNameStripPattern" Value="{}{}" />
    <Property Name="TypedViewMappedOnResultsetPattern" Value="{$ProcFunctionName}{$ResultsetName}Result" />
    <Property Name="TypedViewNameStripPattern" Value="{vw_}{}" />
    <Property Name="UniqueConstraintsFollowDBUniqueConstraints" Value="0" />
    <Property Name="UpdateCustomPropertiesAfterRefresh" Value="0" />
    <Property Name="UseCustomFieldOrderingOnNewElements" Value="false" />
  </Properties>
  <TypeShortcuts />
  <CodeGenerationCyclePreferences>
    <OutputType Value="3">
      <LastUsedPreferences>
        <DestinationRootFolder Value=".\" />
        <FrameworkName Value="LLBLGen Pro Runtime Framework" />
        <LanguageName Value="C#" />
        <PlatformName Value=".NET 4.5" />
        <PresetName Value="SD.Presets.Adapter.General" />
        <RootNamespace Value="LLBLGenRepository" />
        <TemplateGroup Value="Adapter" />
        <TemplateBindings>
          <Binding Name="SD.TemplateBindings.SharedTemplates.NET45x" />
          <Binding Name="SD.TemplateBindings.SharedTemplates" />
          <Binding Name="SD.TemplateBindings.SqlServerSpecific" />
          <Binding Name="SD.TemplateBindings.General" />
        </TemplateBindings>
      </LastUsedPreferences>
    </OutputType>
    <OutputType Value="1">
      <LastUsedPreferences>
        <DestinationRootFolder Value="" />
        <FrameworkName Value="DDL SQL" />
        <LanguageName Value="SQL" />
        <PlatformName Value="RDBMS" />
        <PresetName Value="" />
        <RootNamespace Value="" />
        <TemplateGroup Value="Create DDL SQL" />
        <TemplateBindings />
      </LastUsedPreferences>
    </OutputType>
  </CodeGenerationCyclePreferences>
  <CodeGenerationMetaDataDefaults>
    <TargetElement Type="256">
      <Defaults>
        <Attributes>
          <Attribute Value="Browsable($false)" />
        </Attributes>
      </Defaults>
    </TargetElement>
  </CodeGenerationMetaDataDefaults>
  <EntityModel>
    <ValueTypeDefinitions />
    <EntityDefinitions>
      <EntityDefinition Name="Predmet">
        <Fields>
          <Field Name="Id" Type="int" IsReadOnly="true" Precision="10" IsPrimaryKey="true" />
          <Field Name="Nazev" Type="string" MaxLength="50" />
          <Field Name="PocetKreditu" Type="byte" Precision="3" />
          <Field Name="Popis" Type="string" MaxLength="2147483647" />
          <Field Name="UstavId" Type="int" Precision="10" />
          <Field Name="Zkratka" Type="string" MaxLength="4" />
        </Fields>
      </EntityDefinition>
      <EntityDefinition Name="Ucitel">
        <Fields>
          <Field Name="DatumNarozeni" Type="datetime" />
          <Field Name="Id" Type="int" IsReadOnly="true" Precision="10" IsPrimaryKey="true" />
          <Field Name="Krestni" Type="string" MaxLength="50" />
          <Field Name="NadrizenyId" Type="int" IsOptional="true" Precision="10" />
          <Field Name="Plat" Type="decimal" Precision="18" />
          <Field Name="Prijmeni" Type="string" MaxLength="50" />
          <Field Name="ProstredniJmeno" Type="string" IsOptional="true" MaxLength="50" />
          <Field Name="UstavId" Type="int" Precision="10" />
        </Fields>
      </EntityDefinition>
      <EntityDefinition Name="UcitelPredmet">
        <Fields>
          <Field Name="PredmetId" Type="int" Precision="10" IsPrimaryKey="true" />
          <Field Name="UcitelId" Type="int" Precision="10" IsPrimaryKey="true" />
        </Fields>
      </EntityDefinition>
      <EntityDefinition Name="Ustav">
        <Fields>
          <Field Name="Id" Type="int" IsReadOnly="true" Precision="10" IsPrimaryKey="true" />
          <Field Name="Nazev" Type="string" MaxLength="150" />
          <Field Name="Zkratka" Type="string" MaxLength="4" />
        </Fields>
      </EntityDefinition>
    </EntityDefinitions>
    <Relationships>
      <NormalRelationship Name="Predmet.Ustav-Ustav.Predmets" Start=":Predmet" End=":Ustav" StartNavigator="Ustav" EndNavigator="Predmets" Type="4">
        <FieldRelationships>
          <FieldFieldRelationship FkField="UstavId" PkField="Id" />
        </FieldRelationships>
      </NormalRelationship>
      <NormalRelationship Name="Ucitel.Ucitel-Ucitel.Ucitels" Start=":Ucitel" End=":Ucitel" StartNavigator="Ucitel" EndNavigator="Ucitels" Type="4" EndIsOptional="true">
        <FieldRelationships>
          <FieldFieldRelationship FkField="NadrizenyId" PkField="Id" />
        </FieldRelationships>
      </NormalRelationship>
      <NormalRelationship Name="Ucitel.Ustav-Ustav.Ucitels" Start=":Ucitel" End=":Ustav" StartNavigator="Ustav" EndNavigator="Ucitels" Type="4">
        <FieldRelationships>
          <FieldFieldRelationship FkField="UstavId" PkField="Id" />
        </FieldRelationships>
      </NormalRelationship>
      <NormalRelationship Name="UcitelPredmet.Predmet-Predmet.UcitelPredmets" Start=":UcitelPredmet" End=":Predmet" StartNavigator="Predmet" EndNavigator="UcitelPredmets" Type="4">
        <FieldRelationships>
          <FieldFieldRelationship FkField="PredmetId" PkField="Id" />
        </FieldRelationships>
      </NormalRelationship>
      <NormalRelationship Name="UcitelPredmet.Ucitel-Ucitel.UcitelPredmets" Start=":UcitelPredmet" End=":Ucitel" StartNavigator="Ucitel" EndNavigator="UcitelPredmets" Type="4">
        <FieldRelationships>
          <FieldFieldRelationship FkField="UcitelId" PkField="Id" />
        </FieldRelationships>
      </NormalRelationship>
    </Relationships>
    <InheritanceHierarchies />
  </EntityModel>
  <TargetDatabases>
    <TargetDatabase Type="2D18D138-1DD2-467E-86CC-4838250611AE">
      <ConnectionElements>
        <ConnectionElement Name="ServerName" Value="MERLIN-PC\TESTING" />
        <ConnectionElement Name="CatalogName" Value="master" />
        <ConnectionElement Name="UseWindowsAuthentication" Value="true" />
        <ConnectionElement Name="UserID" Value="" />
        <ConnectionElement Name="Password" Value="" />
      </ConnectionElements>
      <SystemSequences>
        <Sequence Name="SCOPE_IDENTITY()" />
        <Sequence Name="@@IDENTITY" />
      </SystemSequences>
      <Catalogs>
        <Catalog Name="Testing">
          <Schemas>
            <Schema Name="dbo">
              <Tables>
                <Table Name="Predmet">
                  <Fields>
                    <Field Name="Id" Ordinal="1" IsIdentity="true" IsPrimaryKey="true" PkConstraintName="PK_Predmet" DbType="8" Precision="10" />
                    <Field Name="Nazev" Ordinal="2" DbType="12" Length="50" />
                    <Field Name="Zkratka" Ordinal="3" DbType="3" Length="4" />
                    <Field Name="PocetKreditu" Ordinal="4" DbType="22" Precision="3" />
                    <Field Name="Popis" Ordinal="5" DbType="12" Length="2147483647" />
                    <Field Name="UstavId" Ordinal="6" DbType="8" Precision="10" />
                  </Fields>
                </Table>
                <Table Name="Ucitel">
                  <Fields>
                    <Field Name="Id" Ordinal="1" IsIdentity="true" IsPrimaryKey="true" PkConstraintName="PK_Ucitel" DbType="8" Precision="10" />
                    <Field Name="Krestni" Ordinal="2" DbType="12" Length="50" />
                    <Field Name="Prijmeni" Ordinal="3" DbType="12" Length="50" />
                    <Field Name="DatumNarozeni" Ordinal="4" DbType="4" />
                    <Field Name="Plat" Ordinal="5" DbType="5" Precision="18" />
                    <Field Name="ProstredniJmeno" Ordinal="6" IsOptional="true" DbType="12" Length="50" />
                    <Field Name="UstavId" Ordinal="7" DbType="8" Precision="10" />
                    <Field Name="NadrizenyId" Ordinal="8" IsOptional="true" DbType="8" Precision="10" />
                  </Fields>
                </Table>
                <Table Name="UcitelPredmet">
                  <Fields>
                    <Field Name="UcitelId" Ordinal="1" IsPrimaryKey="true" PkConstraintName="PK_UctitelPredmet" DbType="8" Precision="10" />
                    <Field Name="PredmetId" Ordinal="2" IsPrimaryKey="true" PkConstraintName="PK_UctitelPredmet" DbType="8" Precision="10" />
                  </Fields>
                </Table>
                <Table Name="Ustav">
                  <Fields>
                    <Field Name="Id" Ordinal="1" IsIdentity="true" IsPrimaryKey="true" PkConstraintName="PK_Katedra" DbType="8" Precision="10" />
                    <Field Name="Nazev" Ordinal="2" DbType="12" Length="150" />
                    <Field Name="Zkratka" Ordinal="3" DbType="10" Length="4" />
                  </Fields>
                </Table>
              </Tables>
            </Schema>
          </Schemas>
          <ForeignKeyConstraints>
            <ForeignKeyConstraint Name="dbo:Predmet:FK_Predmet_Katedra">
              <FieldPairs>
                <FieldPair PkField="dbo:Ustav:Id" FkField="dbo:Predmet:UstavId" />
              </FieldPairs>
            </ForeignKeyConstraint>
            <ForeignKeyConstraint Name="dbo:Ucitel:FK_Ucitel_Ucitel">
              <FieldPairs>
                <FieldPair PkField="dbo:Ucitel:Id" FkField="dbo:Ucitel:NadrizenyId" />
              </FieldPairs>
            </ForeignKeyConstraint>
            <ForeignKeyConstraint Name="dbo:Ucitel:FK_Ucitel_Ustav">
              <FieldPairs>
                <FieldPair PkField="dbo:Ustav:Id" FkField="dbo:Ucitel:UstavId" />
              </FieldPairs>
            </ForeignKeyConstraint>
            <ForeignKeyConstraint Name="dbo:UcitelPredmet:FK_UctitelPredmet_Predmet">
              <FieldPairs>
                <FieldPair PkField="dbo:Predmet:Id" FkField="dbo:UcitelPredmet:PredmetId" />
              </FieldPairs>
            </ForeignKeyConstraint>
            <ForeignKeyConstraint Name="dbo:UcitelPredmet:FK_UctitelPredmet_Ucitel">
              <FieldPairs>
                <FieldPair PkField="dbo:Ucitel:Id" FkField="dbo:UcitelPredmet:UcitelId" />
              </FieldPairs>
            </ForeignKeyConstraint>
          </ForeignKeyConstraints>
        </Catalog>
      </Catalogs>
    </TargetDatabase>
  </TargetDatabases>
  <MappingStores>
    <MappingStore Type="2D18D138-1DD2-467E-86CC-4838250611AE">
      <EntityMappings>
        <EntityMapping EntityName=":Predmet" TargetName="Testing:dbo:Predmet">
          <FieldMappings>
            <FieldMapping FieldName="Id" TargetFieldName="Id" SequenceToUse="SCOPE_IDENTITY()" />
            <FieldMapping FieldName="Nazev" TargetFieldName="Nazev" />
            <FieldMapping FieldName="PocetKreditu" TargetFieldName="PocetKreditu" />
            <FieldMapping FieldName="Popis" TargetFieldName="Popis" />
            <FieldMapping FieldName="UstavId" TargetFieldName="UstavId" />
            <FieldMapping FieldName="Zkratka" TargetFieldName="Zkratka" />
          </FieldMappings>
        </EntityMapping>
        <EntityMapping EntityName=":Ucitel" TargetName="Testing:dbo:Ucitel">
          <FieldMappings>
            <FieldMapping FieldName="DatumNarozeni" TargetFieldName="DatumNarozeni" />
            <FieldMapping FieldName="Id" TargetFieldName="Id" SequenceToUse="SCOPE_IDENTITY()" />
            <FieldMapping FieldName="Krestni" TargetFieldName="Krestni" />
            <FieldMapping FieldName="NadrizenyId" TargetFieldName="NadrizenyId" />
            <FieldMapping FieldName="Plat" TargetFieldName="Plat" />
            <FieldMapping FieldName="Prijmeni" TargetFieldName="Prijmeni" />
            <FieldMapping FieldName="ProstredniJmeno" TargetFieldName="ProstredniJmeno" />
            <FieldMapping FieldName="UstavId" TargetFieldName="UstavId" />
          </FieldMappings>
        </EntityMapping>
        <EntityMapping EntityName=":UcitelPredmet" TargetName="Testing:dbo:UcitelPredmet">
          <FieldMappings>
            <FieldMapping FieldName="PredmetId" TargetFieldName="PredmetId" />
            <FieldMapping FieldName="UcitelId" TargetFieldName="UcitelId" />
          </FieldMappings>
        </EntityMapping>
        <EntityMapping EntityName=":Ustav" TargetName="Testing:dbo:Ustav">
          <FieldMappings>
            <FieldMapping FieldName="Id" TargetFieldName="Id" SequenceToUse="SCOPE_IDENTITY()" />
            <FieldMapping FieldName="Nazev" TargetFieldName="Nazev" />
            <FieldMapping FieldName="Zkratka" TargetFieldName="Zkratka" />
          </FieldMappings>
        </EntityMapping>
      </EntityMappings>
      <TypedViewMappings />
      <SPCallMappings />
      <TvfCallMappings />
      <TypeConversionDefinitions />
    </MappingStore>
  </MappingStores>
  <ModelViews />
</Project>