|
|
@@ -12,18 +12,19 @@ namespace CD67.FicheCollege.Factory
|
|
|
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)
|
|
|
+ Entity.ActionCLAS item = base.getById(keyValues);
|
|
|
+ if(item == null)
|
|
|
{
|
|
|
string id = keyValues[0].ToString();
|
|
|
- action = new ActionCLAS()
|
|
|
+ item = new ActionCLAS()
|
|
|
{
|
|
|
College_Id = id
|
|
|
};
|
|
|
- this.add(ref action);
|
|
|
+ this.add(ref item);
|
|
|
+ dbContext.Entry(item).Reference(i => i.College).Load();
|
|
|
}
|
|
|
|
|
|
- return action;
|
|
|
+ return item;
|
|
|
}
|
|
|
}
|
|
|
}
|