Aggiunto step preliminare cambio target SQL x EF
prima di buildare cambia il target tra 2008 e 2012 x la gestioen dell'EF verso i rispettivi SqlServer 2008/2012
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
</site>
|
||||
<site name="SiteSelector" id="3">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\samuele\Documents\Visual Studio 2015\Projects\StockMan\SiteSelector" />
|
||||
<virtualDirectory path="/" physicalPath="C:\Users\samuele.STEAMWAREWIN\Documents\VisualStudioProjects\StockMan\SiteSelector" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:3526:localhost" />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<edmx:Runtime>
|
||||
<!-- SSDL content -->
|
||||
<edmx:StorageModels>
|
||||
<Schema Namespace="StockManModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" 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">
|
||||
<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="Item">
|
||||
<Key>
|
||||
<PropertyRef Name="ID" />
|
||||
@@ -331,7 +331,8 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<End Role="ItemFlux" EntitySet="ItemFlux" />
|
||||
</AssociationSet>
|
||||
</EntityContainer>
|
||||
</Schema></edmx:StorageModels>
|
||||
</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">
|
||||
@@ -405,7 +406,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<Property Name="Descr" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<NavigationProperty Name="ItemFlux" Relationship="Self.FK_StockMov_MovType" FromRole="MovType" ToRole="ItemFlux" />
|
||||
<Property Name="CssClass" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
||||
</EntityType>
|
||||
</EntityType>
|
||||
<Association Name="FK_ItemFlux_Location">
|
||||
<End Role="Location" Type="Self.Location" Multiplicity="1" />
|
||||
<End Role="ItemFlux" Type="Self.ItemFlux" Multiplicity="*" />
|
||||
@@ -505,10 +506,10 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<End Role="vItemFlux2Save" EntitySet="vItemFlux2Save" />
|
||||
</AssociationSet>
|
||||
<FunctionImport Name="stp_ItemConsolidate">
|
||||
<Parameter Name="ItemID" Mode="In" Type="Int32" />
|
||||
<Parameter Name="ItemID" Mode="In" Type="Int32" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="stp_ItemDuplicate" EntitySet="Item" ReturnType="Collection(StockManModel.Item)">
|
||||
<Parameter Name="Original_ID" Mode="In" Type="Int32" />
|
||||
<Parameter Name="Original_ID" Mode="In" Type="Int32" />
|
||||
</FunctionImport>
|
||||
<EntitySet Name="vLocationVal" EntityType="StockManModel.vLocationVal" />
|
||||
<AssociationSet Name="LocationvLocationVal" Association="StockManModel.LocationvLocationVal">
|
||||
@@ -529,7 +530,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
<Parameter Name="QtyMov" Mode="In" Type="Int32" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="stp_ItemShrinkHist">
|
||||
<Parameter Name="ItemID" Mode="In" Type="Int32" />
|
||||
<Parameter Name="ItemID" Mode="In" Type="Int32" />
|
||||
</FunctionImport>
|
||||
<AssociationSet Name="FK_ItemFlux_Operator1" Association="StockManModel.FK_ItemFlux_Operator1">
|
||||
<End Role="Operator" EntitySet="Operator" />
|
||||
@@ -873,6 +874,7 @@ warning 6002: The table/view 'StockMan.dbo.vLocationVal' does not have a primary
|
||||
</DesignerInfoPropertySet>
|
||||
</Options>
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<Diagrams></Diagrams>
|
||||
<Diagrams>
|
||||
</Diagrams>
|
||||
</Designer>
|
||||
</edmx:Edmx>
|
||||
@@ -501,6 +501,7 @@
|
||||
<Content Include="Scripts\respond.min.js" />
|
||||
<Content Include="Scripts\_references.js" />
|
||||
<Content Include="Test.html" />
|
||||
<Content Include="Utils\SetEdmxSqlVersion.exe" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
@@ -686,10 +687,26 @@
|
||||
<Error Condition="!Exists('..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props'))" />
|
||||
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.2\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.2\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent></PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target> -->
|
||||
<Target Name="BeforeBuild">
|
||||
<!--Check out BD.edmx, Another.edmx, all configs-->
|
||||
<!--Set to 2008 per TEKAL -->
|
||||
<Exec Condition=" '$(Configuration)' == 'TK_test' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2008" />
|
||||
<Exec Condition=" '$(Configuration)' == 'TK_prod' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2008" />
|
||||
<Exec Condition=" '$(Configuration)' == 'IIS01_TK' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2008" />
|
||||
<Exec Condition=" '$(Configuration)' == 'IIS02_TK' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2008" />
|
||||
<!--Set to 2012 per sviluppo e produzione -->
|
||||
<Exec Condition=" '$(Configuration)' == 'Release' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2012" />
|
||||
<Exec Condition=" '$(Configuration)' == 'Debug' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2012" />
|
||||
<Exec Condition=" '$(Configuration)' == 'IIS01' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2012" />
|
||||
<Exec Condition=" '$(Configuration)' == 'IIS02' " Command="$(SolutionDir)Utils\SetEdmxSqlVersion $(ProjectDir)Models\SMModel.edmx 2012" />
|
||||
</Target>
|
||||
</Project>
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user