Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 public void UpdateUserRegionMap(UserRegionMap map)
 {
     var oldMap = GetUserRegionMap(map.Id);
     oldMap.RegionId = map.RegionId;
     oldMap.UserId = map.UserId;
     oldMap.Description = map.Description;
     userRegionMapRepo.SaveChanges();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserRegionMaps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserRegionMaps(UserRegionMap userRegionMap)
 {
     base.AddObject("UserRegionMaps", userRegionMap);
 }