예제 #1
0
        public NoteData(Note note)
            : this()
        {
            if (note == null)
            {
                return;
            }

            this.NoteId = note.NoteId;
            this.Body = note.Body;
            this.CreatedBy = new UserData(note.CreatedByUser);
            this.CreatedDate = note.CreatedDate;
        }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Notes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNotes(Note note)
 {
     base.AddObject("Notes", note);
 }
예제 #3
0
 /// <summary>
 /// Create a new Note object.
 /// </summary>
 /// <param name="noteId">Initial value of the NoteId property.</param>
 /// <param name="sourceType">Initial value of the SourceType property.</param>
 /// <param name="sourceId">Initial value of the SourceId property.</param>
 /// <param name="body">Initial value of the Body property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 public static Note CreateNote(global::System.Int32 noteId, global::System.Int32 sourceType, global::System.Int32 sourceId, global::System.String body, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate, global::System.Int32 createdBy, global::System.DateTime createdDate)
 {
     Note note = new Note();
     note.NoteId = noteId;
     note.SourceType = sourceType;
     note.SourceId = sourceId;
     note.Body = body;
     note.ModifiedBy = modifiedBy;
     note.ModifiedDate = modifiedDate;
     note.CreatedBy = createdBy;
     note.CreatedDate = createdDate;
     return note;
 }