Browse Source

FIX Connexion du modèle à la BDD ok

julien.legrand 9 years ago
parent
commit
b92d27af27

+ 21 - 0
CD67.ModeleMVC.Entity/ANNEE.cs

@@ -0,0 +1,21 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Ce code a été généré à partir d'un modèle.
+//
+//     Des modifications manuelles apportées à ce fichier peuvent conduire à un comportement inattendu de votre application.
+//     Les modifications manuelles apportées à ce fichier sont remplacées si le code est régénéré.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CD67.ModeleMVC.Entity
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class ANNEE
+    {
+        public decimal ANN_IDE { get; set; }
+        public string ANN_LIB { get; set; }
+        public Nullable<decimal> ANN_PREC { get; set; }
+    }
+}

+ 18 - 1
CD67.ModeleMVC.Entity/App.config

@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="utf-8"?>
 <configuration>
-  <!-- Aucune configuration nécessaire ici, tout est dans le web.config du projet MVC -->
+  <!-- Configuration minimale pour avoir la connexion à la base de données pour le Model -->
+  <configSections>
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <entityFramework>
+    <!-- Suppression du provider par défaut qui stipule SQL server
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
+    -->
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+      <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
+    </providers>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
+  </entityFramework>
+
+  <connectionStrings>
+    <add name="Entities" connectionString="metadata=res://*/EntityModel.csdl|res://*/EntityModel.ssdl|res://*/EntityModel.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string=&quot;DATA SOURCE=T-ORADB-01.cg67.fr:1523/ETU811;PASSWORD=fer;USER ID=FER&quot;" providerName="System.Data.EntityClient" />
+  </connectionStrings>
 </configuration>

+ 0 - 50
CD67.ModeleMVC.Entity/App_config.txt

@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
-  <configSections>
-    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
-    <section name="entityFramework"
-      type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
-      requirePermission="false"/>
-    <section name="oracle.manageddataaccess.client"
-      type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
-  </configSections>
-  <entityFramework>
-    <!-- Suppression du provider par défaut qui stipule SQL server
-    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
-    -->
-    <providers>
-      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
-      <provider invariantName="Oracle.ManagedDataAccess.Client"
-        type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
-    </providers>
-  </entityFramework>
-  <system.data>
-    <DbProviderFactories>
-      <remove invariant="Oracle.ManagedDataAccess.Client"/>
-      <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver"
-        type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
-    </DbProviderFactories>
-  </system.data>
-  <runtime>
-    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
-      <dependentAssembly>
-        <publisherPolicy apply="no"/>
-        <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
-        <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0"/>
-      </dependentAssembly>
-    </assemblyBinding>
-  </runtime>
-  <oracle.manageddataaccess.client>
-    <version number="*">
-      <dataSources>
-        <!-- Définition du datasource, cet alias est utilisé par la connexion Entity -->
-        <dataSource alias="ETU811" descriptor="(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = T-ORADB-01.cg67.fr)(PORT =  1523)))(CONNECT_DATA =(SERVICE_NAME = ETU811)))" />
-      </dataSources>
-    </version>
-  </oracle.manageddataaccess.client>
-  <connectionStrings>
-    <!-- 1ère connexion nécessaire pour créer le model Entity -->
-    <add name="OracleConnection" providerName="Oracle.ManagedDataAccess.Client"
-      connectionString="User Id=FER;Password=fer;Data Source=T-ORADB-01.cg67.fr:1523/ETU811"/>
-  </connectionStrings>
-</configuration>

+ 3 - 3
CD67.ModeleMVC.Entity/CD67.ModeleMVC.Entity.csproj

@@ -58,6 +58,9 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="ANNEE.cs">
+      <DependentUpon>EntityModel.tt</DependentUpon>
+    </Compile>
     <Compile Include="EntityModel.Context.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
@@ -104,9 +107,6 @@
     </None>
     <None Include="packages.config" />
   </ItemGroup>
-  <ItemGroup>
-    <Content Include="App_config.txt" />
-  </ItemGroup>
   <ItemGroup>
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>

+ 1 - 0
CD67.ModeleMVC.Entity/EntityModel.Context.cs

@@ -26,5 +26,6 @@ namespace CD67.ModeleMVC.Entity
         }
     
         public virtual DbSet<PARAM> PARAM { get; set; }
+        public virtual DbSet<ANNEE> ANNEE { get; set; }
     }
 }

+ 29 - 3
CD67.ModeleMVC.Entity/EntityModel.edmx

@@ -4,7 +4,15 @@
   <edmx:Runtime>
     <!-- SSDL content -->
     <edmx:StorageModels>
-      <Schema Namespace="Model.Store" Provider="Oracle.ManagedDataAccess.Client" ProviderManifestToken="11.2" 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="Model.Store" Provider="Oracle.ManagedDataAccess.Client" ProviderManifestToken="11.2" 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="ANNEE">
+          <Key>
+            <PropertyRef Name="ANN_IDE" />
+          </Key>
+          <Property Name="ANN_IDE" Type="number" Precision="38" Scale="0" Nullable="false" />
+          <Property Name="ANN_LIB" Type="varchar2" MaxLength="9" Nullable="false" />
+          <Property Name="ANN_PREC" Type="number" Precision="38" Scale="0" />
+        </EntityType>
         <EntityType Name="PARAM">
           <Key>
             <PropertyRef Name="PRM_CLE" />
@@ -14,10 +22,10 @@
           <Property Name="PRM_LIB2" Type="varchar2" MaxLength="100" />
         </EntityType>
         <EntityContainer Name="ModelStoreContainer">
+          <EntitySet Name="ANNEE" EntityType="Self.ANNEE" Schema="FER" store:Type="Tables" />
           <EntitySet Name="PARAM" EntityType="Self.PARAM" Schema="FER" store:Type="Tables" />
         </EntityContainer>
-      </Schema>
-    </edmx:StorageModels>
+      </Schema></edmx:StorageModels>
     <!-- CSDL content -->
     <edmx:ConceptualModels>
       <Schema Namespace="Model" 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">
@@ -31,7 +39,16 @@
         </EntityType>
         <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
           <EntitySet Name="PARAM" EntityType="Self.PARAM" />
+          <EntitySet Name="ANNEE" EntityType="Model.ANNEE" />
         </EntityContainer>
+        <EntityType Name="ANNEE">
+          <Key>
+            <PropertyRef Name="ANN_IDE" />
+          </Key>
+          <Property Name="ANN_IDE" Type="Decimal" Nullable="false" Precision="38" Scale="0" />
+          <Property Name="ANN_LIB" Type="String" Nullable="false" MaxLength="9" FixedLength="false" Unicode="false" />
+          <Property Name="ANN_PREC" Type="Decimal" Precision="38" Scale="0" />
+        </EntityType>
       </Schema>
     </edmx:ConceptualModels>
     <!-- C-S mapping content -->
@@ -47,6 +64,15 @@
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
+          <EntitySetMapping Name="ANNEE">
+            <EntityTypeMapping TypeName="Model.ANNEE">
+              <MappingFragment StoreEntitySet="ANNEE">
+                <ScalarProperty Name="ANN_PREC" ColumnName="ANN_PREC" />
+                <ScalarProperty Name="ANN_LIB" ColumnName="ANN_LIB" />
+                <ScalarProperty Name="ANN_IDE" ColumnName="ANN_IDE" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
         </EntityContainerMapping>
       </Mapping>
     </edmx:Mappings>

+ 1 - 0
CD67.ModeleMVC.Entity/EntityModel.edmx.diagram

@@ -6,6 +6,7 @@
     <edmx:Diagrams>
       <Diagram DiagramId="9960fb8cd7934be39d08423c28f9279b" Name="Diagram1">
         <EntityTypeShape EntityType="Model.PARAM" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="Model.ANNEE" Width="1.5" PointX="3.375" PointY="0.75" />
       </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>

+ 1 - 46
CD67.ModeleMVC.Factory/App.config

@@ -1,49 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <configuration>
-  <configSections>
-    
-    <section name="entityFramework"
-      type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
-      requirePermission="false"/>
-    
-  
-  <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
-  <section name="oracle.manageddataaccess.client"
-      type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
-  </configSections>
-  <entityFramework>
-    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
-    <providers>
-      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
-      <provider invariantName="Oracle.ManagedDataAccess.Client"
-        type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
-    </providers>
-  </entityFramework>
-  <system.data>
-    <DbProviderFactories>
-      <remove invariant="Oracle.ManagedDataAccess.Client"/>
-      <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver"
-        type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
-    </DbProviderFactories>
-  </system.data>
-  <runtime>
-    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
-      <dependentAssembly>
-        <publisherPolicy apply="no"/>
-        <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
-        <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0"/>
-      </dependentAssembly>
-    </assemblyBinding>
-  </runtime>
-  <oracle.manageddataaccess.client>
-    <version number="*">
-      <dataSources>
-        <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/>
-      </dataSources>
-    </version>
-  </oracle.manageddataaccess.client>
-  <connectionStrings>
-    <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client"
-      connectionString="User Id=oracle_user;Password=oracle_user_password;Data Source=oracle"/>
-  </connectionStrings>
+  <!-- Aucune configuration nécessaire ici, tout est dans le web.config du projet MVC -->
 </configuration>

+ 0 - 1
CD67.ModeleMVC.MVC/CD67.ModeleMVC.MVC.csproj

@@ -195,7 +195,6 @@
       <DependentUpon>Web.config</DependentUpon>
     </Content>
     <Content Include="Views\Web.config" />
-    <Content Include="Web_config.txt" />
     <Content Include="Scripts\jquery-1.9.1.min.map" />
     <Content Include="Views\Shared\_AppLayout.cshtml" />
     <Content Include="Views\Shared\DisplayTemplates\YesNo.cshtml" />

+ 0 - 2
CD67.ModeleMVC.MVC/Web.config

@@ -54,14 +54,12 @@
       <dataSources>
         <!-- Définition du datasource, cet alias est utilisé par la connexion Entity -->
         <dataSource alias="ETU811" descriptor="(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = T-ORADB-01.cg67.fr)(PORT =  1523)))(CONNECT_DATA =(SERVICE_NAME = ETU811)))" />
-        <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
       </dataSources>
     </version>
   </oracle.manageddataaccess.client>
   <connectionStrings>
     <!-- 1ère connexion nécessaire pour créer le model Entity -->
     <add name="OracleConnection" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=FER;Password=fer;Data Source=T-ORADB-01.cg67.fr:1523/ETU811" />
-    <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=oracle_user;Password=oracle_user_password;Data Source=oracle" />
     <!-- Connexion Entity -->
     <add name="Entities" connectionString="metadata=res://*/EntityModel.csdl|res://*/EntityModel.ssdl|res://*/EntityModel.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string=&quot;DATA SOURCE=ETU811;PASSWORD=fer;PERSIST SECURITY INFO=True;USER ID=FER;VALIDATE CONNECTION=False&quot;" providerName="System.Data.EntityClient" />
   </connectionStrings>

+ 0 - 91
CD67.ModeleMVC.MVC/Web_config.txt

@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-  Pour plus d’informations sur la configuration de votre application ASP.NET, consultez la page
-  http://go.microsoft.com/fwlink/?LinkId=169433
-  -->
-<configuration>
-  <configSections>
-    
-    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
-  
-  </configSections>
-  <appSettings>
-    <add key="webpages:Version" value="2.0.0.0" />
-    <add key="webpages:Enabled" value="false" />
-    <add key="PreserveLoginUrl" value="true" />
-    <add key="ClientValidationEnabled" value="true" />
-    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
-  </appSettings>
-  <system.web>
-    <httpRuntime targetFramework="4.5.1" />
-    <compilation debug="true" targetFramework="4.5.1" />
-    <pages>
-      <namespaces>
-        <add namespace="System.Web.Helpers" />
-        <add namespace="System.Web.Mvc" />
-        <add namespace="System.Web.Mvc.Ajax" />
-        <add namespace="System.Web.Mvc.Html" />
-        <add namespace="System.Web.Routing" />
-        <add namespace="System.Web.WebPages" />
-      </namespaces>
-    </pages>
-  </system.web>
-  <system.webServer>
-    <validation validateIntegratedModeConfiguration="false" />
-    <handlers>
-      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
-      <remove name="OPTIONSVerbHandler" />
-      <remove name="TRACEVerbHandler" />
-      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
-    </handlers>
-  </system.webServer>
-  <entityFramework>
-    <!-- Suppression du provider par défaut qui stipule SQL server
-    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
-    -->
-    <providers>
-      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
-    </providers>
-  </entityFramework>
-  <oracle.manageddataaccess.client>
-    <version number="*">
-      <dataSources>
-        <!-- Définition du datasource, cet alias est utilisé par la connexion Entity -->
-        <dataSource alias="ETU811" descriptor="(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = T-ORADB-01.cg67.fr)(PORT =  1523)))(CONNECT_DATA =(SERVICE_NAME = ETU811)))" />
-      </dataSources>
-    </version>
-  </oracle.manageddataaccess.client>
-  <connectionStrings>
-    <!-- 1ère connexion nécessaire pour créer le model Entity -->
-    <add name="OracleConnection" providerName="Oracle.ManagedDataAccess.Client"
-      connectionString="User Id=FER;Password=fer;Data Source=T-ORADB-01.cg67.fr:1523/ETU811"/>
-  </connectionStrings>
-  <runtime>
-    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
-        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
-        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
-        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
-      </dependentAssembly>
-    </assemblyBinding>
-  </runtime>
-</configuration>

+ 1 - 45
CD67.ModeleMVC.Tests/App.config

@@ -1,48 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- 
-    Remarque : Ajoutez des entrées au fichier App.config pour les paramètres de configuration
-    qui s'appliquent uniquement au projet Test.
--->
 <configuration>
-  <configSections>
-    
-    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
-    
-  
-  <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
-  <appSettings></appSettings>
-  <entityFramework>
-    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
-    <providers>
-      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
-    </providers>
-  </entityFramework>
-  <runtime>
-    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
-      </dependentAssembly>
-      <dependentAssembly>
-        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
-        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
-      </dependentAssembly>
-    </assemblyBinding>
-  </runtime>
+  <!-- Aucune configuration nécessaire ici, tout est dans le web.config du projet MVC -->
 </configuration>

+ 2 - 1
README.md

@@ -27,7 +27,8 @@ La solution est consitu
 
 
 # CD67.ModeleMVC.Entity
-Le modèle se nomme par défaut "EntityModel"
+Le modèle se nomme par défaut "EntityModel".
+Pour se connecter à la base de données afin de faire évoluer le modèle, il faut utiliser la connexion "OracleConnection (CD67.ModeleMVC.MVC)".
 
 Le dossier "Extend" contient les extensions éventuelles de classe Entity (qui se trouvent dans "EntityModel.edmx\EntityModel.tt\").
 C'est notamment utile pour ajouter les DataAnnotations permettant de décrire le données en vue d'une génération de contrôles plus appropiés dans les vues MVC.