コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserPlaces EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserPlaces(UserPlaceEntity userPlaceEntity)
 {
     base.AddObject("UserPlaces", userPlaceEntity);
 }
コード例 #2
0
 /// <summary>
 /// Create a new UserPlaceEntity object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="placeId">Initial value of the PlaceId property.</param>
 /// <param name="role">Initial value of the Role property.</param>
 public static UserPlaceEntity CreateUserPlaceEntity(global::System.Int64 userId, global::System.Int32 placeId, global::System.String role)
 {
     UserPlaceEntity userPlaceEntity = new UserPlaceEntity();
     userPlaceEntity.UserId = userId;
     userPlaceEntity.PlaceId = placeId;
     userPlaceEntity.Role = role;
     return userPlaceEntity;
 }