Example #1
0
 public void UpdateUserDealerMap(UserDealerMap map)
 {
     var oldMap = GetUserDealerMap(map.Id);
     oldMap.DealerId = map.DealerId;
     oldMap.UserId = map.UserId;
     oldMap.Description = map.Description;
     mapRepo.SaveChanges();
 }
Example #2
0
 /// <summary>
 /// Create a new UserDealerMap object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="objectInfo">Initial value of the ObjectInfo property.</param>
 /// <param name="dealerId">Initial value of the DealerId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static UserDealerMap CreateUserDealerMap(global::System.Int32 id, ObjectInfo objectInfo, global::System.Int32 dealerId, global::System.Int32 userId)
 {
     UserDealerMap userDealerMap = new UserDealerMap();
     userDealerMap.Id = id;
     userDealerMap.ObjectInfo = StructuralObject.VerifyComplexObjectIsNotNull(objectInfo, "ObjectInfo");
     userDealerMap.DealerId = dealerId;
     userDealerMap.UserId = userId;
     return userDealerMap;
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserDealerMaps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserDealerMaps(UserDealerMap userDealerMap)
 {
     base.AddObject("UserDealerMaps", userDealerMap);
 }