Beispiel #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserNeighborhoods EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserNeighborhoods(UserNeighborhood userNeighborhood)
 {
     base.AddObject("UserNeighborhoods", userNeighborhood);
 }
Beispiel #2
0
 /// <summary>
 /// Create a new UserNeighborhood object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="neighborhoodId">Initial value of the NeighborhoodId property.</param>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 public static UserNeighborhood CreateUserNeighborhood(global::System.Guid id, global::System.Guid userId, global::System.Guid neighborhoodId, global::System.Guid roleId)
 {
     UserNeighborhood userNeighborhood = new UserNeighborhood();
     userNeighborhood.Id = id;
     userNeighborhood.UserId = userId;
     userNeighborhood.NeighborhoodId = neighborhoodId;
     userNeighborhood.RoleId = roleId;
     return userNeighborhood;
 }