예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TrainingProfileMaps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTrainingProfileMaps(TrainingProfileMap trainingProfileMap)
 {
     base.AddObject("TrainingProfileMaps", trainingProfileMap);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 public void UpdateTrainingProfileMap(TrainingProfileMap map)
 {
     var oldMap = GetTrainingProfileMap(map.Id);
     oldMap.LastTrainingDate = map.LastTrainingDate;
     mapRepo.SaveChanges();
 }