| 1234567891011121314151617181920212223242526272829 |
- 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<Entity.ActionCLAS>
- {
- 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;
- }
- }
- }
|