/// <summary> /// Create a new UserRegionMap object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="objectInfo">Initial value of the ObjectInfo property.</param> /// <param name="regionId">Initial value of the RegionId property.</param> /// <param name="userId">Initial value of the UserId property.</param> public static UserRegionMap CreateUserRegionMap(global::System.Int32 id, ObjectInfo objectInfo, global::System.Int32 regionId, global::System.Int32 userId) { UserRegionMap userRegionMap = new UserRegionMap(); userRegionMap.Id = id; userRegionMap.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo"); userRegionMap.RegionId = regionId; userRegionMap.UserId = userId; return userRegionMap; }
public void UpdateUserRegionMap(UserRegionMap map) { var oldMap = GetUserRegionMap(map.Id); oldMap.RegionId = map.RegionId; oldMap.UserId = map.UserId; oldMap.Description = map.Description; userRegionMapRepo.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the UserRegionMaps EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserRegionMaps(UserRegionMap userRegionMap) { base.AddObject("UserRegionMaps", userRegionMap); }