/// <summary> /// Deprecated Method for adding a new object to the TrainingProfileMaps EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTrainingProfileMaps(TrainingProfileMap trainingProfileMap) { base.AddObject("TrainingProfileMaps", trainingProfileMap); }
/// <summary> /// Create a new TrainingProfileMap object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="dealerManpowerId">Initial value of the DealerManpowerId property.</param> /// <param name="trainingId">Initial value of the TrainingId property.</param> /// <param name="objectInfo">Initial value of the ObjectInfo property.</param> public static TrainingProfileMap CreateTrainingProfileMap(global::System.Int32 id, global::System.Int32 dealerManpowerId, global::System.Int32 trainingId, ObjectInfo objectInfo) { TrainingProfileMap trainingProfileMap = new TrainingProfileMap(); trainingProfileMap.Id = id; trainingProfileMap.DealerManpowerId = dealerManpowerId; trainingProfileMap.TrainingId = trainingId; trainingProfileMap.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo"); return trainingProfileMap; }
public void UpdateTrainingProfileMap(TrainingProfileMap map) { var oldMap = GetTrainingProfileMap(map.Id); oldMap.LastTrainingDate = map.LastTrainingDate; mapRepo.SaveChanges(); }