Переглянути джерело

NEW Ajout de la table Collèges BDD, Entity & Factory

julien.legrand 8 роки тому
батько
коміт
1d597c6e20

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

@@ -63,4 +63,11 @@
     <Property Name="ParentElementType" Value="SqlTable" />
     <Property Name="NewName" Value="Referent_SID" />
   </Operation>
+  <Operation Name="Rename Refactor" Key="733e13cf-50d0-43ce-b246-b440fad4771d" ChangeDateTime="01/08/2018 17:04:16">
+    <Property Name="ElementName" Value="[dbo].[College].[Code_TAD]" />
+    <Property Name="ElementType" Value="SqlSimpleColumn" />
+    <Property Name="ParentElementName" Value="[dbo].[College]" />
+    <Property Name="ParentElementType" Value="SqlTable" />
+    <Property Name="NewName" Value="Territoire_Id" />
+  </Operation>
 </Operations>

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

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

+ 46 - 0
CD67.FicheCollege.BDD/College.sql

@@ -0,0 +1,46 @@
+CREATE TABLE [dbo].[College]
+(
+	[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,
+	[Principal_SID] NVARCHAR(64) NULL, 
+	[Principal_Login] NVARCHAR(255) NULL, 
+    [Principal_Nom] NVARCHAR(255) NULL, 
+    [Principal_Prenom] NVARCHAR(255) NULL, 
+    [Principal_Email] NVARCHAR(255) NULL, 
+    [Principal_Tel] NVARCHAR(255) NULL,
+	[Principal_Structure] NVARCHAR(255) NULL,
+	[Adjoint_SID] NVARCHAR(64) NULL, 
+	[Adjoint_Login] NVARCHAR(255) NULL, 
+	[Adjoint_Nom] NVARCHAR(255) NULL, 
+    [Adjoint_Prenom] NVARCHAR(255) NULL, 
+    [Adjoint_Email] NVARCHAR(255) NULL, 
+    [Adjoint_Tel] NVARCHAR(255) NULL,
+	[Adjoint_Structure] NVARCHAR(255) NULL,
+	[Gestionnaire_SID] NVARCHAR(64) NULL, 
+	[Gestionnaire_Login] NVARCHAR(255) NULL, 
+	[Gestionnaire_Nom] NVARCHAR(255) NULL, 
+    [Gestionnaire_Prenom] NVARCHAR(255) NULL, 
+    [Gestionnaire_Email] NVARCHAR(255) NULL, 
+    [Gestionnaire_Tel] NVARCHAR(255) NULL,
+	[Gestionnaire_Structure] NVARCHAR(255) NULL,
+	[Gestionnaire2_SID] NVARCHAR(64) NULL, 
+	[Gestionnaire2_Login] NVARCHAR(255) NULL, 
+	[Gestionnaire2_Nom] NVARCHAR(255) NULL, 
+    [Gestionnaire2_Prenom] NVARCHAR(255) NULL, 
+    [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])
+)

+ 19 - 0
CD67.FicheCollege.BDD/Colleges.sql

@@ -0,0 +1,19 @@
+CREATE TABLE [dbo].[Colleges]
+(
+	[Id] NVARCHAR(8) NOT NULL PRIMARY KEY, 
+	[Libelle] NVARCHAR(255) NOT NULL, 
+	[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,
+    CONSTRAINT [FK_Colleges_TypesCollege] FOREIGN KEY ([TypeCollege_Id]) REFERENCES [TypesCollege]([Id]), 
+    CONSTRAINT [FK_Colleges_Territoires] FOREIGN KEY ([Territoire_Id]) REFERENCES [Territoires]([Id])
+)

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

@@ -59,6 +59,9 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="College.cs">
+      <DependentUpon>EntityModel.tt</DependentUpon>
+    </Compile>
     <Compile Include="EntityModel.Context.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
@@ -74,6 +77,7 @@
       <DesignTime>True</DesignTime>
       <DependentUpon>EntityModel.edmx</DependentUpon>
     </Compile>
+    <Compile Include="Extend\College.cs" />
     <Compile Include="Extend\Territoire.cs" />
     <Compile Include="Extend\TypeCollege.cs" />
     <Compile Include="Internal\Entities.cs" />

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

@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// <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 College
+    {
+        public string Id { get; set; }
+        public string Libelle { get; set; }
+        public string Adresse { get; set; }
+        public string Code_Postal { get; set; }
+        public int TypeCollege_Id { get; set; }
+        public string Commune_Insee { get; set; }
+        public string Commune { get; set; }
+        public string Canton { get; set; }
+        public string Territoire_Id { get; set; }
+        public string TAD { get; set; }
+        public string CDC { get; set; }
+        public string Tel { get; set; }
+        public string Fax { get; set; }
+        public string Email { get; set; }
+    
+        public virtual Territoire Territoire { get; set; }
+        public virtual TypeCollege TypeCollege { get; set; }
+    }
+}

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

@@ -27,5 +27,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; }
     }
 }

+ 130 - 2
CD67.FicheCollege.Entity/EntityModel.edmx

@@ -5,6 +5,25 @@
     <!-- SSDL content -->
     <edmx:StorageModels>
     <Schema Namespace="ModeleMVC.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="Colleges">
+          <Key>
+            <PropertyRef Name="Id" />
+          </Key>
+          <Property Name="Id" Type="nvarchar" MaxLength="8" Nullable="false" />
+          <Property Name="Libelle" Type="nvarchar" MaxLength="255" Nullable="false" />
+          <Property Name="Adresse" Type="nvarchar" MaxLength="255" />
+          <Property Name="Code_Postal" Type="nvarchar" MaxLength="5" />
+          <Property Name="TypeCollege_Id" Type="int" Nullable="false" />
+          <Property Name="Commune_Insee" Type="nvarchar" MaxLength="5" />
+          <Property Name="Commune" Type="nvarchar" MaxLength="255" Nullable="false" />
+          <Property Name="Canton" Type="nvarchar" MaxLength="255" />
+          <Property Name="Territoire_Id" Type="nvarchar" MaxLength="10" />
+          <Property Name="TAD" Type="nvarchar" MaxLength="255" />
+          <Property Name="CDC" Type="nvarchar" MaxLength="255" />
+          <Property Name="Tel" Type="nvarchar" MaxLength="255" />
+          <Property Name="Fax" Type="nvarchar" MaxLength="255" />
+          <Property Name="Email" Type="nvarchar" MaxLength="255" />
+        </EntityType>
         <EntityType Name="Territoires">
           <Key>
             <PropertyRef Name="Id" />
@@ -27,9 +46,42 @@
           <Property Name="Libelle" Type="nvarchar" MaxLength="255" Nullable="false" />
           <Property Name="Ordre" Type="int" Nullable="false" />
         </EntityType>
+        <Association Name="FK_Colleges_Territoires">
+          <End Role="Territoires" Type="Self.Territoires" Multiplicity="0..1" />
+          <End Role="Colleges" Type="Self.Colleges" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Territoires">
+              <PropertyRef Name="Id" />
+            </Principal>
+            <Dependent Role="Colleges">
+              <PropertyRef Name="Territoire_Id" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Colleges_TypesCollege">
+          <End Role="TypesCollege" Type="Self.TypesCollege" Multiplicity="1" />
+          <End Role="Colleges" Type="Self.Colleges" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="TypesCollege">
+              <PropertyRef Name="Id" />
+            </Principal>
+            <Dependent Role="Colleges">
+              <PropertyRef Name="TypeCollege_Id" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
         <EntityContainer Name="ModeleMVCStoreContainer">
+          <EntitySet Name="Colleges" EntityType="Self.Colleges" 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">
+            <End Role="Territoires" EntitySet="Territoires" />
+            <End Role="Colleges" EntitySet="Colleges" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Colleges_TypesCollege" Association="Self.FK_Colleges_TypesCollege">
+            <End Role="TypesCollege" EntitySet="TypesCollege" />
+            <End Role="Colleges" EntitySet="Colleges" />
+          </AssociationSet>
         </EntityContainer>
       </Schema></edmx:StorageModels>
     <!-- CSDL content -->
@@ -38,7 +90,16 @@
         <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
           <EntitySet Name="TypesCollege" EntityType="CD67.FicheCollege.TypeCollege" />
           <EntitySet Name="Territoires" EntityType="CD67.FicheCollege.Territoire" />
-        </EntityContainer>
+          <EntitySet Name="Colleges" EntityType="CD67.FicheCollege.College" />
+          <AssociationSet Name="FK_Colleges_Territoires" Association="CD67.FicheCollege.FK_Colleges_Territoires">
+            <End Role="Territoire" EntitySet="Territoires" />
+            <End Role="College" EntitySet="Colleges" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Colleges_TypesCollege" Association="CD67.FicheCollege.FK_Colleges_TypesCollege">
+            <End Role="TypeCollege" EntitySet="TypesCollege" />
+            <End Role="College" EntitySet="Colleges" />
+          </AssociationSet>
+          </EntityContainer>
         <EntityType Name="TypeCollege">
           <Key>
             <PropertyRef Name="Id" />
@@ -46,6 +107,7 @@
           <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
           <Property Name="Libelle" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
           <Property Name="Ordre" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="Colleges" Relationship="CD67.FicheCollege.FK_Colleges_TypesCollege" FromRole="TypeCollege" ToRole="College" />
         </EntityType>
         <EntityType Name="Territoire">
           <Key>
@@ -60,8 +122,54 @@
           <Property Name="Referent_Login" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
           <Property Name="Referent_Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
           <Property Name="Ordre" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="Colleges" Relationship="CD67.FicheCollege.FK_Colleges_Territoires" FromRole="Territoire" ToRole="College" />
+        </EntityType>
+        <EntityType Name="College">
+          <Key>
+            <PropertyRef Name="Id" />
+          </Key>
+          <Property Name="Id" Type="String" Nullable="false" MaxLength="8" FixedLength="false" Unicode="true" />
+          <Property Name="Libelle" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Adresse" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Code_Postal" Type="String" MaxLength="5" FixedLength="false" Unicode="true" />
+          <Property Name="TypeCollege_Id" Type="Int32" Nullable="false" />
+          <Property Name="Commune_Insee" Type="String" MaxLength="5" FixedLength="false" Unicode="true" />
+          <Property Name="Commune" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Canton" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Territoire_Id" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
+          <Property Name="TAD" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="CDC" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Tel" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <Property Name="Fax" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
+          <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" />
         </EntityType>
-      </Schema>
+        <Association Name="FK_Colleges_Territoires">
+          <End Type="CD67.FicheCollege.Territoire" Role="Territoire" Multiplicity="0..1" />
+          <End Type="CD67.FicheCollege.College" Role="College" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Territoire">
+              <PropertyRef Name="Id" />
+            </Principal>
+            <Dependent Role="College">
+              <PropertyRef Name="Territoire_Id" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Colleges_TypesCollege">
+          <End Type="CD67.FicheCollege.TypeCollege" Role="TypeCollege" Multiplicity="1" />
+          <End Type="CD67.FicheCollege.College" Role="College" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="TypeCollege">
+              <PropertyRef Name="Id" />
+            </Principal>
+            <Dependent Role="College">
+              <PropertyRef Name="TypeCollege_Id" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        </Schema>
     </edmx:ConceptualModels>
     <!-- C-S mapping content -->
     <edmx:Mappings>
@@ -91,6 +199,26 @@
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
+          <EntitySetMapping Name="Colleges">
+            <EntityTypeMapping TypeName="CD67.FicheCollege.College">
+              <MappingFragment StoreEntitySet="Colleges">
+                <ScalarProperty Name="Email" ColumnName="Email" />
+                <ScalarProperty Name="Fax" ColumnName="Fax" />
+                <ScalarProperty Name="Tel" ColumnName="Tel" />
+                <ScalarProperty Name="CDC" ColumnName="CDC" />
+                <ScalarProperty Name="TAD" ColumnName="TAD" />
+                <ScalarProperty Name="Territoire_Id" ColumnName="Territoire_Id" />
+                <ScalarProperty Name="Canton" ColumnName="Canton" />
+                <ScalarProperty Name="Commune" ColumnName="Commune" />
+                <ScalarProperty Name="Commune_Insee" ColumnName="Commune_Insee" />
+                <ScalarProperty Name="TypeCollege_Id" ColumnName="TypeCollege_Id" />
+                <ScalarProperty Name="Code_Postal" ColumnName="Code_Postal" />
+                <ScalarProperty Name="Adresse" ColumnName="Adresse" />
+                <ScalarProperty Name="Libelle" ColumnName="Libelle" />
+                <ScalarProperty Name="Id" ColumnName="Id" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
         </EntityContainerMapping>
 </Mapping></edmx:Mappings>
   </edmx:Runtime>

+ 6 - 3
CD67.FicheCollege.Entity/EntityModel.edmx.diagram

@@ -5,9 +5,12 @@
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
       <Diagram DiagramId="86b727c7572a49c5b7e8139c8d489465" Name="Diagram1">
-        <EntityTypeShape EntityType="CD67.FicheCollege.TypeCollege" Width="1.5" PointX="2.75" PointY="0.75" />
-        <EntityTypeShape EntityType="CD67.FicheCollege.Territoire" Width="1.5" PointX="0.75" PointY="0.75" />
-      </Diagram>
+        <EntityTypeShape EntityType="CD67.FicheCollege.TypeCollege" Width="1.5" PointX="0.75" PointY="0.75" />
+        <EntityTypeShape EntityType="CD67.FicheCollege.Territoire" Width="1.5" PointX="0.75" PointY="2.75" />
+        <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" />
+        </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>
 </edmx:Edmx>

+ 40 - 0
CD67.FicheCollege.Entity/Extend/College.cs

@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CD67.FicheCollege.Entity
+{
+    /// <summary>
+    /// Classe d'extension de celle d'Entity, nécessaire pour y associer les Metadata
+    /// </summary>
+    [MetadataType(typeof(College_Metadata))]
+    public partial class College
+    {
+        public string AdresseComplete => $"{this.Adresse}\n{this.Code_Postal} {this.Commune}";
+    }
+
+    /// <summary>
+    /// Classe contenant les DataAnnotations pour chaque champ
+    /// </summary>
+    public class College_Metadata
+    {
+        [Required]
+        [Display(Name = "Code RNE du collège")]
+        public string Id { get; set; }
+        [Required]
+        [Display(Name = "Collège")]
+        public string Libelle { get; set; }
+        [Display(Name = "Code postal")]
+        public string Code_Postal { get; set; }
+        [Display(Name = "Type d'établissement")]
+        public int TypeCollege_Id { get; set; }
+        [Display(Name = "Territoire de rattachement")]
+        public string Territoire_Id { get; set; }
+        [Display(Name = "Canton de rattachement")]
+        public string Canton { get; set; }
+
+    }
+}

+ 9 - 0
CD67.FicheCollege.Entity/Territoire.cs

@@ -14,6 +14,12 @@ namespace CD67.FicheCollege.Entity
     
     public partial class Territoire
     {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Territoire()
+        {
+            this.Colleges = new HashSet<College>();
+        }
+    
         public string Id { get; set; }
         public string Libelle { get; set; }
         public string Referent_SID { get; set; }
@@ -23,5 +29,8 @@ namespace CD67.FicheCollege.Entity
         public string Referent_Login { get; set; }
         public string Referent_Email { get; set; }
         public int Ordre { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<College> Colleges { get; set; }
     }
 }

+ 9 - 0
CD67.FicheCollege.Entity/TypeCollege.cs

@@ -14,8 +14,17 @@ namespace CD67.FicheCollege.Entity
     
     public partial class TypeCollege
     {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public TypeCollege()
+        {
+            this.Colleges = new HashSet<College>();
+        }
+    
         public int Id { get; set; }
         public string Libelle { get; set; }
         public int Ordre { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<College> Colleges { get; set; }
     }
 }

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

@@ -54,6 +54,9 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Internal\CollegeFactory.cs">
+      <DependentUpon>GenericFactories.tt</DependentUpon>
+    </Compile>
     <Compile Include="Internal\GenericFactories.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>

+ 21 - 0
CD67.FicheCollege.Factory/Internal/CollegeFactory.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 CollegeFactory : Internal.BaseFactory<Entity.College>
+	{
+		/// <summary>
+        /// Constructeur public lié au constructeur de base
+        /// </summary>
+        /// <param name="dbContext">Context Entity Framework utilisé dans la classe</param>
+		public CollegeFactory(Entities dbContext) : base(dbContext) { }
+	}
+}
+