/// <summary> /// 复制 /// </summary> public void Clone(Photo entity) { this.PhotoID = entity.PhotoID; this.UploadTime = entity.UploadTime; this.PhotoName = entity.PhotoName; this.Description = entity.Description; this.PUserID = entity.PUserID; }
/// <summary> /// 用于向 Photos EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToPhotos(Photo photo) { base.AddObject("Photos", photo); }
/// <summary> /// 创建新的 Photo 对象。 /// </summary> /// <param name="photoID">PhotoID 属性的初始值。</param> public static Photo CreatePhoto(global::System.Int32 photoID) { Photo photo = new Photo(); photo.PhotoID = photoID; return photo; }