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 ActionCLASFactory : Internal.BaseFactory { public override Entity.ActionCLAS getById(params object[] keyValues) { //si l'élément n'existe pas, on le créé Entity.ActionCLAS action = base.getById(keyValues); if(action == null) { string id = keyValues[0].ToString(); action = new ActionCLAS() { College_Id = id }; this.add(ref action); } return action; } } }