Bläddra i källkod

NEW Ajout de la partie Identité BDD, Entity et Factory

julien.legrand 8 år sedan
förälder
incheckning
7fc6ae61c0

+ 7 - 0
CD67.FicheCollege.BDD/CD67.FicheCollege.BDD.refactorlog

@@ -70,4 +70,11 @@
     <Property Name="ParentElementType" Value="SqlTable" />
     <Property Name="NewName" Value="Territoire_Id" />
   </Operation>
+  <Operation Name="Rename Refactor" Key="8145a11a-e0c9-4b98-887b-77f0639a3fdf" ChangeDateTime="01/10/2018 09:09:22">
+    <Property Name="ElementName" Value="[dbo].[FicheIdentite].[Id]" />
+    <Property Name="ElementType" Value="SqlSimpleColumn" />
+    <Property Name="ParentElementName" Value="[dbo].[FicheIdentite]" />
+    <Property Name="ParentElementType" Value="SqlTable" />
+    <Property Name="NewName" Value="College_Id" />
+  </Operation>
 </Operations>

+ 1 - 0
CD67.FicheCollege.BDD/CD67.FicheCollege.BDD.sqlproj

@@ -63,6 +63,7 @@
     <Build Include="TypesCollege.sql" />
     <Build Include="Territoires.sql" />
     <Build Include="Colleges.sql" />
+    <Build Include="Identites.sql" />
   </ItemGroup>
   <ItemGroup>
     <RefactorLog Include="CD67.FicheCollege.BDD.refactorlog" />

+ 3 - 16
CD67.FicheCollege.BDD/College.sql → CD67.FicheCollege.BDD/Identites.sql

@@ -1,18 +1,6 @@
-CREATE TABLE [dbo].[College]
+CREATE TABLE [dbo].[Identites]
 (
-	[Id] NVARCHAR(8) NOT NULL PRIMARY KEY, 
-	[Adresse] NVARCHAR(255) NULL, 
-	[Code_Postal] NVARCHAR(5) NULL, 
-    [TypeCollege_Id] INT NOT NULL, 
-	[Commune_Insee] NVARCHAR(5) NULL, 
-	[Commune] NVARCHAR(255) NOT NULL, 
-    [Canton] NVARCHAR(255) NULL, 
-    [Territoire_Id] NVARCHAR(10) NULL, 
-    [TAD] NVARCHAR(255) NULL, 
-    [CDC] NVARCHAR(255) NULL, 
-	[Tel] NVARCHAR(255) NULL,
-	[Fax] NVARCHAR(255) NULL,
-	[Email] NVARCHAR(255) NULL,
+	[College_Id] NVARCHAR(8) NOT NULL PRIMARY KEY, 
 	[Principal_SID] NVARCHAR(64) NULL, 
 	[Principal_Login] NVARCHAR(255) NULL, 
     [Principal_Nom] NVARCHAR(255) NULL, 
@@ -41,6 +29,5 @@
     [Gestionnaire2_Email] NVARCHAR(255) NULL, 
     [Gestionnaire2_Tel] NVARCHAR(255) NULL,
 	[Gestionnaire2_Structure] NVARCHAR(255) NULL, 
-    CONSTRAINT [FK_College_TypesCollege] FOREIGN KEY ([TypeCollege_Id]) REFERENCES [TypesCollege]([Id]), 
-    CONSTRAINT [FK_College_Territoires] FOREIGN KEY ([Territoire_Id]) REFERENCES [Territoires]([Id])
+    CONSTRAINT [FK_FicheIdentite_College] FOREIGN KEY ([College_Id]) REFERENCES [Colleges]([Id])
 )

+ 3 - 0
CD67.FicheCollege.Entity/CD67.FicheCollege.Entity.csproj

@@ -80,6 +80,9 @@
     <Compile Include="Extend\College.cs" />
     <Compile Include="Extend\Territoire.cs" />
     <Compile Include="Extend\TypeCollege.cs" />
+    <Compile Include="Identite.cs">
+      <DependentUpon>EntityModel.tt</DependentUpon>
+    </Compile>
     <Compile Include="Internal\Entities.cs" />
     <Compile Include="Internal\FormattedDbEntityValidationException.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />

+ 1 - 0
CD67.FicheCollege.Entity/College.cs

@@ -31,5 +31,6 @@ namespace CD67.FicheCollege.Entity
     
         public virtual Territoire Territoire { get; set; }
         public virtual TypeCollege TypeCollege { get; set; }
+        public virtual Identite Identite { get; set; }
     }
 }

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

@@ -28,5 +28,6 @@ namespace CD67.FicheCollege.Entity
         public virtual DbSet<TypeCollege> TypesCollege { get; set; }
         public virtual DbSet<Territoire> Territoires { get; set; }
         public virtual DbSet<College> Colleges { get; set; }
+        public virtual DbSet<Identite> Identites { get; set; }
     }
 }

+ 139 - 0
CD67.FicheCollege.Entity/EntityModel.edmx

@@ -24,6 +24,40 @@
           <Property Name="Fax" Type="nvarchar" MaxLength="255" />
           <Property Name="Email" Type="nvarchar" MaxLength="255" />
         </EntityType>
+        <EntityType Name="Identites">
+          <Key>
+            <PropertyRef Name="College_Id" />
+          </Key>
+          <Property Name="College_Id" Type="nvarchar" MaxLength="8" Nullable="false" />
+          <Property Name="Principal_SID" Type="nvarchar" MaxLength="64" />
+          <Property Name="Principal_Login" Type="nvarchar" MaxLength="255" />
+          <Property Name="Principal_Nom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Principal_Prenom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Principal_Email" Type="nvarchar" MaxLength="255" />
+          <Property Name="Principal_Tel" Type="nvarchar" MaxLength="255" />
+          <Property Name="Principal_Structure" Type="nvarchar" MaxLength="255" />
+          <Property Name="Adjoint_SID" Type="nvarchar" MaxLength="64" />
+          <Property Name="Adjoint_Login" Type="nvarchar" MaxLength="255" />
+          <Property Name="Adjoint_Nom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Adjoint_Prenom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Adjoint_Email" Type="nvarchar" MaxLength="255" />
+          <Property Name="Adjoint_Tel" Type="nvarchar" MaxLength="255" />
+          <Property Name="Adjoint_Structure" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire_SID" Type="nvarchar" MaxLength="64" />
+          <Property Name="Gestionnaire_Login" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire_Nom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire_Prenom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire_Email" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire_Tel" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire_Structure" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire2_SID" Type="nvarchar" MaxLength="64" />
+          <Property Name="Gestionnaire2_Login" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire2_Nom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire2_Prenom" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire2_Email" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire2_Tel" Type="nvarchar" MaxLength="255" />
+          <Property Name="Gestionnaire2_Structure" Type="nvarchar" MaxLength="255" />
+        </EntityType>
         <EntityType Name="Territoires">
           <Key>
             <PropertyRef Name="Id" />
@@ -70,8 +104,21 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
+        <Association Name="FK_FicheIdentite_College">
+          <End Role="Colleges" Type="Self.Colleges" Multiplicity="1" />
+          <End Role="Identites" Type="Self.Identites" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="Colleges">
+              <PropertyRef Name="Id" />
+            </Principal>
+            <Dependent Role="Identites">
+              <PropertyRef Name="College_Id" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
         <EntityContainer Name="ModeleMVCStoreContainer">
           <EntitySet Name="Colleges" EntityType="Self.Colleges" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Identites" EntityType="Self.Identites" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Territoires" EntityType="Self.Territoires" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="TypesCollege" EntityType="Self.TypesCollege" Schema="dbo" store:Type="Tables" />
           <AssociationSet Name="FK_Colleges_Territoires" Association="Self.FK_Colleges_Territoires">
@@ -82,6 +129,10 @@
             <End Role="TypesCollege" EntitySet="TypesCollege" />
             <End Role="Colleges" EntitySet="Colleges" />
           </AssociationSet>
+          <AssociationSet Name="FK_FicheIdentite_College" Association="Self.FK_FicheIdentite_College">
+            <End Role="Colleges" EntitySet="Colleges" />
+            <End Role="Identites" EntitySet="Identites" />
+          </AssociationSet>
         </EntityContainer>
       </Schema></edmx:StorageModels>
     <!-- CSDL content -->
@@ -99,6 +150,11 @@
             <End Role="TypeCollege" EntitySet="TypesCollege" />
             <End Role="College" EntitySet="Colleges" />
           </AssociationSet>
+          <EntitySet Name="Identites" EntityType="CD67.FicheCollege.Identite" />
+          <AssociationSet Name="FK_FicheIdentite_College" Association="CD67.FicheCollege.FK_FicheIdentite_College">
+            <End Role="College" EntitySet="Colleges" />
+            <End Role="Identite" EntitySet="Identites" />
+          </AssociationSet>
           </EntityContainer>
         <EntityType Name="TypeCollege">
           <Key>
@@ -144,6 +200,7 @@
           <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
           <NavigationProperty Name="Territoire" Relationship="CD67.FicheCollege.FK_Colleges_Territoires" FromRole="College" ToRole="Territoire" />
           <NavigationProperty Name="TypeCollege" Relationship="CD67.FicheCollege.FK_Colleges_TypesCollege" FromRole="College" ToRole="TypeCollege" />
+          <NavigationProperty Name="Identite" Relationship="CD67.FicheCollege.FK_FicheIdentite_College" FromRole="College" ToRole="Identite" />
         </EntityType>
         <Association Name="FK_Colleges_Territoires">
           <End Type="CD67.FicheCollege.Territoire" Role="Territoire" Multiplicity="0..1" />
@@ -169,6 +226,53 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
+        <EntityType Name="Identite">
+          <Key>
+            <PropertyRef Name="College_Id" />
+          </Key>
+          <Property Name="College_Id" Type="String" Nullable="false" MaxLength="8" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_SID" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_Login" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_Nom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_Prenom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_Tel" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Principal_Structure" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_SID" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_Login" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_Nom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_Prenom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_Tel" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adjoint_Structure" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_SID" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_Login" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_Nom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_Prenom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_Tel" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire_Structure" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_SID" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_Login" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_Nom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_Prenom" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_Tel" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Gestionnaire2_Structure" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <NavigationProperty Name="College" Relationship="CD67.FicheCollege.FK_FicheIdentite_College" FromRole="Identite" ToRole="College" />
+        </EntityType>
+        <Association Name="FK_FicheIdentite_College">
+          <End Type="CD67.FicheCollege.College" Role="College" Multiplicity="1" />
+          <End Type="CD67.FicheCollege.Identite" Role="Identite" Multiplicity="0..1" />
+          <ReferentialConstraint>
+            <Principal Role="College">
+              <PropertyRef Name="Id" />
+            </Principal>
+            <Dependent Role="Identite">
+              <PropertyRef Name="College_Id" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
         </Schema>
     </edmx:ConceptualModels>
     <!-- C-S mapping content -->
@@ -219,6 +323,41 @@
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
+          <EntitySetMapping Name="Identites">
+            <EntityTypeMapping TypeName="CD67.FicheCollege.Identite">
+              <MappingFragment StoreEntitySet="Identites">
+                <ScalarProperty Name="Gestionnaire2_Structure" ColumnName="Gestionnaire2_Structure" />
+                <ScalarProperty Name="Gestionnaire2_Tel" ColumnName="Gestionnaire2_Tel" />
+                <ScalarProperty Name="Gestionnaire2_Email" ColumnName="Gestionnaire2_Email" />
+                <ScalarProperty Name="Gestionnaire2_Prenom" ColumnName="Gestionnaire2_Prenom" />
+                <ScalarProperty Name="Gestionnaire2_Nom" ColumnName="Gestionnaire2_Nom" />
+                <ScalarProperty Name="Gestionnaire2_Login" ColumnName="Gestionnaire2_Login" />
+                <ScalarProperty Name="Gestionnaire2_SID" ColumnName="Gestionnaire2_SID" />
+                <ScalarProperty Name="Gestionnaire_Structure" ColumnName="Gestionnaire_Structure" />
+                <ScalarProperty Name="Gestionnaire_Tel" ColumnName="Gestionnaire_Tel" />
+                <ScalarProperty Name="Gestionnaire_Email" ColumnName="Gestionnaire_Email" />
+                <ScalarProperty Name="Gestionnaire_Prenom" ColumnName="Gestionnaire_Prenom" />
+                <ScalarProperty Name="Gestionnaire_Nom" ColumnName="Gestionnaire_Nom" />
+                <ScalarProperty Name="Gestionnaire_Login" ColumnName="Gestionnaire_Login" />
+                <ScalarProperty Name="Gestionnaire_SID" ColumnName="Gestionnaire_SID" />
+                <ScalarProperty Name="Adjoint_Structure" ColumnName="Adjoint_Structure" />
+                <ScalarProperty Name="Adjoint_Tel" ColumnName="Adjoint_Tel" />
+                <ScalarProperty Name="Adjoint_Email" ColumnName="Adjoint_Email" />
+                <ScalarProperty Name="Adjoint_Prenom" ColumnName="Adjoint_Prenom" />
+                <ScalarProperty Name="Adjoint_Nom" ColumnName="Adjoint_Nom" />
+                <ScalarProperty Name="Adjoint_Login" ColumnName="Adjoint_Login" />
+                <ScalarProperty Name="Adjoint_SID" ColumnName="Adjoint_SID" />
+                <ScalarProperty Name="Principal_Structure" ColumnName="Principal_Structure" />
+                <ScalarProperty Name="Principal_Tel" ColumnName="Principal_Tel" />
+                <ScalarProperty Name="Principal_Email" ColumnName="Principal_Email" />
+                <ScalarProperty Name="Principal_Prenom" ColumnName="Principal_Prenom" />
+                <ScalarProperty Name="Principal_Nom" ColumnName="Principal_Nom" />
+                <ScalarProperty Name="Principal_Login" ColumnName="Principal_Login" />
+                <ScalarProperty Name="Principal_SID" ColumnName="Principal_SID" />
+                <ScalarProperty Name="College_Id" ColumnName="College_Id" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
         </EntityContainerMapping>
 </Mapping></edmx:Mappings>
   </edmx:Runtime>

+ 2 - 0
CD67.FicheCollege.Entity/EntityModel.edmx.diagram

@@ -10,6 +10,8 @@
         <EntityTypeShape EntityType="CD67.FicheCollege.College" Width="1.5" PointX="3" PointY="1.125" />
         <AssociationConnector Association="CD67.FicheCollege.FK_Colleges_Territoires" />
         <AssociationConnector Association="CD67.FicheCollege.FK_Colleges_TypesCollege" />
+        <EntityTypeShape EntityType="CD67.FicheCollege.Identite" Width="1.875" PointX="5.125" PointY="1.125" />
+        <AssociationConnector Association="CD67.FicheCollege.FK_FicheIdentite_College" />
         </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>

+ 49 - 0
CD67.FicheCollege.Entity/Identite.cs

@@ -0,0 +1,49 @@
+//------------------------------------------------------------------------------
+// <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.FicheCollege.Entity
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Identite
+    {
+        public string College_Id { get; set; }
+        public string Principal_SID { get; set; }
+        public string Principal_Login { get; set; }
+        public string Principal_Nom { get; set; }
+        public string Principal_Prenom { get; set; }
+        public string Principal_Email { get; set; }
+        public string Principal_Tel { get; set; }
+        public string Principal_Structure { get; set; }
+        public string Adjoint_SID { get; set; }
+        public string Adjoint_Login { get; set; }
+        public string Adjoint_Nom { get; set; }
+        public string Adjoint_Prenom { get; set; }
+        public string Adjoint_Email { get; set; }
+        public string Adjoint_Tel { get; set; }
+        public string Adjoint_Structure { get; set; }
+        public string Gestionnaire_SID { get; set; }
+        public string Gestionnaire_Login { get; set; }
+        public string Gestionnaire_Nom { get; set; }
+        public string Gestionnaire_Prenom { get; set; }
+        public string Gestionnaire_Email { get; set; }
+        public string Gestionnaire_Tel { get; set; }
+        public string Gestionnaire_Structure { get; set; }
+        public string Gestionnaire2_SID { get; set; }
+        public string Gestionnaire2_Login { get; set; }
+        public string Gestionnaire2_Nom { get; set; }
+        public string Gestionnaire2_Prenom { get; set; }
+        public string Gestionnaire2_Email { get; set; }
+        public string Gestionnaire2_Tel { get; set; }
+        public string Gestionnaire2_Structure { get; set; }
+    
+        public virtual College College { get; set; }
+    }
+}

+ 5 - 0
CD67.FicheCollege.Factory/CD67.FicheCollege.Factory.csproj

@@ -54,6 +54,8 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="CollegeFactory.cs" />
+    <Compile Include="IdentiteFactory.cs" />
     <Compile Include="Internal\CollegeFactory.cs">
       <DependentUpon>GenericFactories.tt</DependentUpon>
     </Compile>
@@ -63,6 +65,9 @@
       <DependentUpon>GenericFactories.tt</DependentUpon>
     </Compile>
     <Compile Include="Internal\BaseFactory.cs" />
+    <Compile Include="Internal\IdentiteFactory.cs">
+      <DependentUpon>GenericFactories.tt</DependentUpon>
+    </Compile>
     <Compile Include="Internal\TerritoireFactory.cs">
       <DependentUpon>GenericFactories.tt</DependentUpon>
     </Compile>

+ 27 - 0
CD67.FicheCollege.Factory/CollegeFactory.cs

@@ -0,0 +1,27 @@
+using CD67.FicheCollege.Entity;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Data.Entity;
+
+namespace CD67.FicheCollege.Factory
+{
+    public partial class CollegeFactory : Internal.BaseFactory<Entity.College>
+    {
+        public override void delete(ref College entity)
+        {
+            //Suppression en cascade
+            //Identité
+            IdentiteFactory identiteFactory = new IdentiteFactory(dbContext);
+            if (entity.Identite == null) dbContext.Entry(entity).Reference(i => i.Identite).Load();
+            if (entity.Identite != null)
+            {
+                Entity.Identite identite = entity.Identite;
+                identiteFactory.delete(ref identite);
+            }
+
+            base.delete(ref entity);
+        }
+    }
+}

+ 29 - 0
CD67.FicheCollege.Factory/IdentiteFactory.cs

@@ -0,0 +1,29 @@
+using CD67.FicheCollege.Entity;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Data.Entity;
+
+namespace CD67.FicheCollege.Factory
+{
+    public partial class IdentiteFactory : Internal.BaseFactory<Entity.Identite>
+    {
+        public override Identite getById(params object[] keyValues)
+        {
+            //si l'élément n'existe pas, on le créé
+            Entity.Identite identite = base.getById(keyValues);
+            if(identite ==null)
+            {
+                string id = keyValues[0].ToString();
+                identite = new Identite()
+                {
+                    College_Id = id
+                };
+                this.add(ref identite);
+            }
+
+            return identite;
+        }
+    }
+}

+ 21 - 0
CD67.FicheCollege.Factory/Internal/IdentiteFactory.cs

@@ -0,0 +1,21 @@
+using CD67.FicheCollege.Entity;
+using System.Linq;
+
+namespace CD67.FicheCollege.Factory
+{
+	/// <summary>
+    /// NE PAS MODIFIER
+    /// C'est une classe partielle, elle peut être complétée avec une classe partielle du même nom
+    /// Factory générée automatiquement à l'aide du fichier GenericFactories.tt
+    /// pour toutes les entités du fichier entity : /CD67.FicheCollege.Entity/EntityModel.edmx
+    /// </summary>
+	public partial class IdentiteFactory : Internal.BaseFactory<Entity.Identite>
+	{
+		/// <summary>
+        /// Constructeur public lié au constructeur de base
+        /// </summary>
+        /// <param name="dbContext">Context Entity Framework utilisé dans la classe</param>
+		public IdentiteFactory(Entities dbContext) : base(dbContext) { }
+	}
+}
+