CollegeFactory.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using CD67.FicheCollege.Entity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Data.Entity;
  7. namespace CD67.FicheCollege.Factory
  8. {
  9. public partial class CollegeFactory : Internal.BaseFactory<Entity.College>
  10. {
  11. //// Charge les données d'identité des agents depuis le web-service
  12. //public void hydrate(ref College college)
  13. //{
  14. // Entity.WsAgents.Agents wsAgents = new Entity.WsAgents.Agents();
  15. // if (!String.IsNullOrEmpty(college.PrincipalSid)) {
  16. // college.principal = wsAgents.GetById(college.PrincipalSid);
  17. // }
  18. // if (!String.IsNullOrEmpty(college.AdjointSid)) {
  19. // college.adjoint = wsAgents.GetById(college.AdjointSid);
  20. // }
  21. // if (!String.IsNullOrEmpty(college.Gestionnaire1Sid)) {
  22. // college.gestionnaire1 = wsAgents.GetById(college.Gestionnaire1Sid);
  23. // }
  24. // if (!String.IsNullOrEmpty(college.Gestionnaire2Sid)) {
  25. // college.gestionnaire2 = wsAgents.GetById(college.Gestionnaire2Sid);
  26. // }
  27. //}
  28. }
  29. }