Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Photos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPhotos(Photo photo)
 {
     base.AddObject("Photos", photo);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Photo object.
 /// </summary>
 /// <param name="photoId">Initial value of the PhotoId property.</param>
 /// <param name="buildingId">Initial value of the BuildingId property.</param>
 /// <param name="isPrimary">Initial value of the IsPrimary property.</param>
 /// <param name="sortOrder">Initial value of the SortOrder property.</param>
 /// <param name="extension">Initial value of the Extension property.</param>
 /// <param name="createDateUtc">Initial value of the CreateDateUtc property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="updateDateUtc">Initial value of the UpdateDateUtc property.</param>
 /// <param name="updatedBy">Initial value of the UpdatedBy property.</param>
 public static Photo CreatePhoto(global::System.Guid photoId, global::System.Int64 buildingId, global::System.Boolean isPrimary, global::System.Int32 sortOrder, global::System.String extension, global::System.DateTime createDateUtc, global::System.String createdBy, global::System.DateTime updateDateUtc, global::System.String updatedBy)
 {
     Photo photo = new Photo();
     photo.PhotoId = photoId;
     photo.BuildingId = buildingId;
     photo.IsPrimary = isPrimary;
     photo.SortOrder = sortOrder;
     photo.Extension = extension;
     photo.CreateDateUtc = createDateUtc;
     photo.CreatedBy = createdBy;
     photo.UpdateDateUtc = updateDateUtc;
     photo.UpdatedBy = updatedBy;
     return photo;
 }