コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SavedBuildings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSavedBuildings(SavedBuilding savedBuilding)
 {
     base.AddObject("SavedBuildings", savedBuilding);
 }
コード例 #2
0
 /// <summary>
 /// Create a new SavedBuilding object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="buildingId">Initial value of the BuildingId property.</param>
 /// <param name="createDateUtc">Initial value of the CreateDateUtc property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 public static SavedBuilding CreateSavedBuilding(global::System.Int32 userId, global::System.Int64 buildingId, global::System.DateTime createDateUtc, global::System.String createdBy)
 {
     SavedBuilding savedBuilding = new SavedBuilding();
     savedBuilding.UserId = userId;
     savedBuilding.BuildingId = buildingId;
     savedBuilding.CreateDateUtc = createDateUtc;
     savedBuilding.CreatedBy = createdBy;
     return savedBuilding;
 }