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 { //// Charge les données d'identité des agents depuis le web-service //public void hydrate(ref College college) //{ // Entity.WsAgents.Agents wsAgents = new Entity.WsAgents.Agents(); // if (!String.IsNullOrEmpty(college.PrincipalSid)) { // college.principal = wsAgents.GetById(college.PrincipalSid); // } // if (!String.IsNullOrEmpty(college.AdjointSid)) { // college.adjoint = wsAgents.GetById(college.AdjointSid); // } // if (!String.IsNullOrEmpty(college.Gestionnaire1Sid)) { // college.gestionnaire1 = wsAgents.GetById(college.Gestionnaire1Sid); // } // if (!String.IsNullOrEmpty(college.Gestionnaire2Sid)) { // college.gestionnaire2 = wsAgents.GetById(college.Gestionnaire2Sid); // } //} } }