public void UpdateDsmDseTargetMap(DsmDseTargetMap map) { var oldMap = GetDsmDseTargetMap(map.Id); oldMap.DsmId = map.DsmId; oldMap.DseId = map.DseId; oldMap.MonthId = map.MonthId; oldMap.UserId = map.UserId; oldMap.Description = map.Description; mapRepo.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the DsmDseTargetMaps EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDsmDseTargetMaps(DsmDseTargetMap dsmDseTargetMap) { base.AddObject("DsmDseTargetMaps", dsmDseTargetMap); }
/// <summary> /// Create a new DsmDseTargetMap object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="dsmId">Initial value of the DsmId property.</param> /// <param name="dseId">Initial value of the DseId property.</param> /// <param name="monthId">Initial value of the MonthId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="objectInfo">Initial value of the ObjectInfo property.</param> public static DsmDseTargetMap CreateDsmDseTargetMap(global::System.Int32 id, global::System.Int32 dsmId, global::System.Int32 dseId, global::System.Int32 monthId, global::System.Int32 userId, ObjectInfo objectInfo) { DsmDseTargetMap dsmDseTargetMap = new DsmDseTargetMap(); dsmDseTargetMap.Id = id; dsmDseTargetMap.DsmId = dsmId; dsmDseTargetMap.DseId = dseId; dsmDseTargetMap.MonthId = monthId; dsmDseTargetMap.UserId = userId; dsmDseTargetMap.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo"); return dsmDseTargetMap; }