/// <summary> /// Deprecated Method for adding a new object to the Photos EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhotos(Photo photo) { base.AddObject("Photos", photo); }
/// <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="extension">Initial value of the Extension property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static Photo CreatePhoto(global::System.Guid photoId, global::System.Int32 buildingId, global::System.Boolean isPrimary, global::System.String extension, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted) { Photo photo = new Photo(); photo.PhotoId = photoId; photo.BuildingId = buildingId; photo.IsPrimary = isPrimary; photo.Extension = extension; photo.CreateDate = createDate; photo.CreatedBy = createdBy; photo.IsDeleted = isDeleted; return photo; }