public void UpdateAttritionProfileMap(AttritionProfileMap map)
 {
     var oldAttrition = GetAttritionProfileMap(map.Id);
     oldAttrition.AttritionId = map.AttritionId;
     oldAttrition.DateOfLeaving = map.DateOfLeaving;
     mapRepo.SaveChanges();
 }
 public static AttritionProfileModel FromDomainModel(AttritionProfileMap map)
 {
     return new AttritionProfileModel {
         Id = map.Id,
         AttritionId = map.AttritionId,
         DateOfLeaving = map.DateOfLeaving
     };
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the AttritionProfileMaps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAttritionProfileMaps(AttritionProfileMap attritionProfileMap)
 {
     base.AddObject("AttritionProfileMaps", attritionProfileMap);
 }
 /// <summary>
 /// Create a new AttritionProfileMap object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="objectInfo">Initial value of the ObjectInfo property.</param>
 /// <param name="attritionId">Initial value of the AttritionId property.</param>
 public static AttritionProfileMap CreateAttritionProfileMap(global::System.Int32 id, ObjectInfo objectInfo, global::System.Int32 attritionId)
 {
     AttritionProfileMap attritionProfileMap = new AttritionProfileMap();
     attritionProfileMap.Id = id;
     attritionProfileMap.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo");
     attritionProfileMap.AttritionId = attritionId;
     return attritionProfileMap;
 }