/// <summary>
 /// Create a new CompetencyProfileMap object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="dealerManpowerId">Initial value of the DealerManpowerId property.</param>
 /// <param name="competencyId">Initial value of the CompetencyId property.</param>
 /// <param name="score">Initial value of the Score property.</param>
 /// <param name="objectInfo">Initial value of the ObjectInfo property.</param>
 public static CompetencyProfileMap CreateCompetencyProfileMap(global::System.Int32 id, global::System.Int32 dealerManpowerId, global::System.Int32 competencyId, global::System.Double score, ObjectInfo objectInfo)
 {
     CompetencyProfileMap competencyProfileMap = new CompetencyProfileMap();
     competencyProfileMap.Id = id;
     competencyProfileMap.DealerManpowerId = dealerManpowerId;
     competencyProfileMap.CompetencyId = competencyId;
     competencyProfileMap.Score = score;
     competencyProfileMap.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo");
     return competencyProfileMap;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CompetencyProfileMaps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCompetencyProfileMaps(CompetencyProfileMap competencyProfileMap)
 {
     base.AddObject("CompetencyProfileMaps", competencyProfileMap);
 }
 public void UpdateCompetencyProfileMap(CompetencyProfileMap map)
 {
     var oldMap = GetCompetencyProfileMap(map.Id);
     oldMap.Score = map.Score;
     mapRepo.SaveChanges();
 }