/// <summary> /// 复制 /// </summary> public NoteView Clone(Note entity) { this.NoteID = entity.NoteID; this.Body = entity.Body; this.AddTime = entity.AddTime; this.Title = entity.Title; this.NUserID = entity.NUserID; this.RotateAngle = entity.RotateAngle; this.RotateCenterX = entity.RotateCenterX; this.RotateCenterY = entity.RotateCenterY; this.X = entity.X; this.Y = entity.Y; this.Width = entity.Width; this.Height = entity.Height; this.Color = entity.Color; return this; }
/// <summary> /// 用于向 Notes EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToNotes(Note note) { base.AddObject("Notes", note); }
/// <summary> /// 创建新的 Note 对象。 /// </summary> /// <param name="noteID">NoteID 属性的初始值。</param> /// <param name="body">Body 属性的初始值。</param> /// <param name="addTime">AddTime 属性的初始值。</param> /// <param name="rotateAngle">RotateAngle 属性的初始值。</param> /// <param name="rotateCenterX">RotateCenterX 属性的初始值。</param> /// <param name="rotateCenterY">RotateCenterY 属性的初始值。</param> /// <param name="x">X 属性的初始值。</param> /// <param name="y">Y 属性的初始值。</param> /// <param name="width">Width 属性的初始值。</param> /// <param name="height">Height 属性的初始值。</param> public static Note CreateNote(global::System.Int32 noteID, global::System.String body, global::System.DateTime addTime, global::System.Double rotateAngle, global::System.Double rotateCenterX, global::System.Double rotateCenterY, global::System.Double x, global::System.Double y, global::System.Double width, global::System.Double height) { Note note = new Note(); note.NoteID = noteID; note.Body = body; note.AddTime = addTime; note.RotateAngle = rotateAngle; note.RotateCenterX = rotateCenterX; note.RotateCenterY = rotateCenterY; note.X = x; note.Y = y; note.Width = width; note.Height = height; return note; }