Files
StockMan/StockManMVC/Models/SMModel.edmx
T
Samuele E. Locatelli b3caeaaf8b Refresh classi stock
x errore naming ref esterna LocationID...
2016-09-20 19:04:30 +02:00

417 lines
22 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="StockManModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityType Name="Items">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Descr" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="Family" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="DescrExt" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="CodExt" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="CodInt" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="QtaMin" Type="int" Nullable="false" />
<Property Name="QtaBatch" Type="int" Nullable="false" />
<Property Name="Value" Type="decimal" Precision="18" Scale="6" Nullable="false" />
</EntityType>
<EntityType Name="Location">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Descr" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="LocTypeID" Type="varchar" MaxLength="50" Nullable="false" />
</EntityType>
<EntityType Name="LocType">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="varchar" MaxLength="50" Nullable="false" />
<Property Name="Descr" Type="nvarchar" MaxLength="250" />
</EntityType>
<EntityType Name="MovType">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Descr" Type="nvarchar" MaxLength="250" Nullable="false" />
</EntityType>
<EntityType Name="Stock">
<Key>
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
</Key>
<Property Name="ItemID" Type="int" Nullable="false" />
<Property Name="LocationID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="QtyConf" Type="int" Nullable="false" />
<Property Name="Note" Type="nvarchar(max)" Nullable="false" />
<Property Name="dtLastUpd" Type="datetime" />
</EntityType>
<EntityType Name="StockMov">
<Key>
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
<PropertyRef Name="dtMov" />
</Key>
<Property Name="ItemID" Type="int" Nullable="false" />
<Property Name="LocationID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="dtMov" Type="datetime" Nullable="false" />
<Property Name="Qta" Type="int" Nullable="false" />
<Property Name="Note" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="dtExport" Type="datetime" />
<Property Name="MovTypeID" Type="nvarchar" MaxLength="50" />
</EntityType>
<Association Name="FK_Location_LocType1">
<End Role="LocType" Type="Self.LocType" Multiplicity="1" />
<End Role="Location" Type="Self.Location" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="LocType">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="Location">
<PropertyRef Name="LocTypeID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Stock_Items">
<End Role="Items" Type="Self.Items" Multiplicity="1" />
<End Role="Stock" Type="Self.Stock" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Items">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="Stock">
<PropertyRef Name="ItemID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Stock_Location1">
<End Role="Location" Type="Self.Location" Multiplicity="1" />
<End Role="Stock" Type="Self.Stock" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Location">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="Stock">
<PropertyRef Name="LocationID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_StockMov_MovType">
<End Role="MovType" Type="Self.MovType" Multiplicity="0..1" />
<End Role="StockMov" Type="Self.StockMov" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="MovType">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="StockMov">
<PropertyRef Name="MovTypeID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_StockMov_Stock">
<End Role="Stock" Type="Self.Stock" Multiplicity="1" />
<End Role="StockMov" Type="Self.StockMov" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Stock">
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
</Principal>
<Dependent Role="StockMov">
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="StockManModelStoreContainer">
<EntitySet Name="Items" EntityType="Self.Items" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Location" EntityType="Self.Location" Schema="dbo" store:Type="Tables" />
<EntitySet Name="LocType" EntityType="Self.LocType" Schema="dbo" store:Type="Tables" />
<EntitySet Name="MovType" EntityType="Self.MovType" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Stock" EntityType="Self.Stock" Schema="dbo" store:Type="Tables" />
<EntitySet Name="StockMov" EntityType="Self.StockMov" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK_Location_LocType1" Association="Self.FK_Location_LocType1">
<End Role="LocType" EntitySet="LocType" />
<End Role="Location" EntitySet="Location" />
</AssociationSet>
<AssociationSet Name="FK_Stock_Items" Association="Self.FK_Stock_Items">
<End Role="Items" EntitySet="Items" />
<End Role="Stock" EntitySet="Stock" />
</AssociationSet>
<AssociationSet Name="FK_Stock_Location1" Association="Self.FK_Stock_Location1">
<End Role="Location" EntitySet="Location" />
<End Role="Stock" EntitySet="Stock" />
</AssociationSet>
<AssociationSet Name="FK_StockMov_MovType" Association="Self.FK_StockMov_MovType">
<End Role="MovType" EntitySet="MovType" />
<End Role="StockMov" EntitySet="StockMov" />
</AssociationSet>
<AssociationSet Name="FK_StockMov_Stock" Association="Self.FK_StockMov_Stock">
<End Role="Stock" EntitySet="Stock" />
<End Role="StockMov" EntitySet="StockMov" />
</AssociationSet>
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="StockManModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<EntityContainer Name="StockManEntities" annotation:LazyLoadingEnabled="true" >
<EntitySet Name="Location" EntityType="StockManModel.Location" />
<EntitySet Name="LocType" EntityType="StockManModel.LocType" />
<EntitySet Name="MovType" EntityType="StockManModel.MovType" />
<AssociationSet Name="FK_Location_LocType" Association="StockManModel.FK_Location_LocType">
<End Role="LocType" EntitySet="LocType" />
<End Role="Location" EntitySet="Location" />
</AssociationSet>
<EntitySet Name="Items" EntityType="StockManModel.Items" />
<EntitySet Name="Stock" EntityType="StockManModel.Stock" />
<EntitySet Name="StockMov" EntityType="StockManModel.StockMov" />
<AssociationSet Name="FK_Stock_Items" Association="StockManModel.FK_Stock_Items">
<End Role="Items" EntitySet="Items" />
<End Role="Stock" EntitySet="Stock" />
</AssociationSet>
<AssociationSet Name="FK_Stock_Location1" Association="StockManModel.FK_Stock_Location1">
<End Role="Location" EntitySet="Location" />
<End Role="Stock" EntitySet="Stock" />
</AssociationSet>
<AssociationSet Name="FK_StockMov_MovType" Association="StockManModel.FK_StockMov_MovType">
<End Role="MovType" EntitySet="MovType" />
<End Role="StockMov" EntitySet="StockMov" />
</AssociationSet>
<AssociationSet Name="FK_StockMov_Stock" Association="StockManModel.FK_StockMov_Stock">
<End Role="Stock" EntitySet="Stock" />
<End Role="StockMov" EntitySet="StockMov" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Location">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="Descr" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="LocTypeID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
<NavigationProperty Name="LocType" Relationship="StockManModel.FK_Location_LocType" FromRole="Location" ToRole="LocType" />
<NavigationProperty Name="Stock" Relationship="StockManModel.FK_Stock_Location1" FromRole="Location" ToRole="Stock" />
</EntityType>
<EntityType Name="LocType">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="Descr" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Location" Relationship="StockManModel.FK_Location_LocType" FromRole="LocType" ToRole="Location" />
</EntityType>
<EntityType Name="MovType">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="Descr" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
<NavigationProperty Name="StockMov" Relationship="StockManModel.FK_StockMov_MovType" FromRole="MovType" ToRole="StockMov" />
</EntityType>
<Association Name="FK_Location_LocType">
<End Type="StockManModel.LocType" Role="LocType" Multiplicity="1" />
<End Type="StockManModel.Location" Role="Location" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="LocType">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="Location">
<PropertyRef Name="LocTypeID" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityType Name="Items">
<Key>
<PropertyRef Name="ID" />
</Key>
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Descr" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
<Property Name="Family" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="DescrExt" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
<Property Name="CodExt" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
<Property Name="CodInt" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="QtaMin" Type="Int32" Nullable="false" />
<Property Name="QtaBatch" Type="Int32" Nullable="false" />
<Property Name="Value" Type="Decimal" Nullable="false" Precision="18" Scale="6" />
<NavigationProperty Name="Stock" Relationship="StockManModel.FK_Stock_Items" FromRole="Items" ToRole="Stock" />
</EntityType>
<EntityType Name="Stock">
<Key>
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
</Key>
<Property Name="ItemID" Type="Int32" Nullable="false" />
<Property Name="LocationID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="QtyConf" Type="Int32" Nullable="false" />
<Property Name="Note" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="dtLastUpd" Type="DateTime" Precision="3" />
<NavigationProperty Name="Items" Relationship="StockManModel.FK_Stock_Items" FromRole="Stock" ToRole="Items" />
<NavigationProperty Name="Location" Relationship="StockManModel.FK_Stock_Location1" FromRole="Stock" ToRole="Location" />
<NavigationProperty Name="StockMov" Relationship="StockManModel.FK_StockMov_Stock" FromRole="Stock" ToRole="StockMov" />
</EntityType>
<EntityType Name="StockMov">
<Key>
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
<PropertyRef Name="dtMov" />
</Key>
<Property Name="ItemID" Type="Int32" Nullable="false" />
<Property Name="LocationID" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="dtMov" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="Qta" Type="Int32" Nullable="false" />
<Property Name="Note" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
<Property Name="dtExport" Type="DateTime" Precision="3" />
<Property Name="MovTypeID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<NavigationProperty Name="MovType" Relationship="StockManModel.FK_StockMov_MovType" FromRole="StockMov" ToRole="MovType" />
<NavigationProperty Name="Stock" Relationship="StockManModel.FK_StockMov_Stock" FromRole="StockMov" ToRole="Stock" />
</EntityType>
<Association Name="FK_Stock_Items">
<End Type="StockManModel.Items" Role="Items" Multiplicity="1" />
<End Type="StockManModel.Stock" Role="Stock" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Items">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="Stock">
<PropertyRef Name="ItemID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Stock_Location1">
<End Type="StockManModel.Location" Role="Location" Multiplicity="1" />
<End Type="StockManModel.Stock" Role="Stock" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Location">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="Stock">
<PropertyRef Name="LocationID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_StockMov_MovType">
<End Type="StockManModel.MovType" Role="MovType" Multiplicity="0..1" />
<End Type="StockManModel.StockMov" Role="StockMov" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="MovType">
<PropertyRef Name="ID" />
</Principal>
<Dependent Role="StockMov">
<PropertyRef Name="MovTypeID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_StockMov_Stock">
<End Type="StockManModel.Stock" Role="Stock" Multiplicity="1" />
<End Type="StockManModel.StockMov" Role="StockMov" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Stock">
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
</Principal>
<Dependent Role="StockMov">
<PropertyRef Name="ItemID" />
<PropertyRef Name="LocationID" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="StockManModelStoreContainer" CdmEntityContainer="StockManEntities" >
<EntitySetMapping Name="Location">
<EntityTypeMapping TypeName="StockManModel.Location">
<MappingFragment StoreEntitySet="Location">
<ScalarProperty Name="LocTypeID" ColumnName="LocTypeID" />
<ScalarProperty Name="Descr" ColumnName="Descr" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="LocType">
<EntityTypeMapping TypeName="StockManModel.LocType">
<MappingFragment StoreEntitySet="LocType">
<ScalarProperty Name="Descr" ColumnName="Descr" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="MovType">
<EntityTypeMapping TypeName="StockManModel.MovType">
<MappingFragment StoreEntitySet="MovType">
<ScalarProperty Name="Descr" ColumnName="Descr" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Items">
<EntityTypeMapping TypeName="StockManModel.Items">
<MappingFragment StoreEntitySet="Items">
<ScalarProperty Name="Value" ColumnName="Value" />
<ScalarProperty Name="QtaBatch" ColumnName="QtaBatch" />
<ScalarProperty Name="QtaMin" ColumnName="QtaMin" />
<ScalarProperty Name="CodInt" ColumnName="CodInt" />
<ScalarProperty Name="CodExt" ColumnName="CodExt" />
<ScalarProperty Name="DescrExt" ColumnName="DescrExt" />
<ScalarProperty Name="Family" ColumnName="Family" />
<ScalarProperty Name="Descr" ColumnName="Descr" />
<ScalarProperty Name="ID" ColumnName="ID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Stock">
<EntityTypeMapping TypeName="StockManModel.Stock">
<MappingFragment StoreEntitySet="Stock">
<ScalarProperty Name="dtLastUpd" ColumnName="dtLastUpd" />
<ScalarProperty Name="Note" ColumnName="Note" />
<ScalarProperty Name="QtyConf" ColumnName="QtyConf" />
<ScalarProperty Name="LocationID" ColumnName="LocationID" />
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="StockMov">
<EntityTypeMapping TypeName="StockManModel.StockMov">
<MappingFragment StoreEntitySet="StockMov">
<ScalarProperty Name="MovTypeID" ColumnName="MovTypeID" />
<ScalarProperty Name="dtExport" ColumnName="dtExport" />
<ScalarProperty Name="Note" ColumnName="Note" />
<ScalarProperty Name="Qta" ColumnName="Qta" />
<ScalarProperty Name="dtMov" ColumnName="dtMov" />
<ScalarProperty Name="LocationID" ColumnName="LocationID" />
<ScalarProperty Name="ItemID" ColumnName="ItemID" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="false" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="false" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>