// Do the actual value copying
 private void set(Journal journal)
 {
     this.dtEntryDate = journal.EntryDate;
     this.JourId = journal.Id;
     this.Weight = journal.Weight;
     this.HeartRate = journal.HeartRate;
     this.Story = journal.Story;
     this.Encrypted = journal.Encrypted;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Journals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToJournals(Journal journal)
 {
     base.AddObject("Journals", journal);
 }
 /// <summary>
 /// Retrieves or creates a journal for the member for "today"
 /// </summary>
 /// <param name="member">Member's Username</param>
 public JournalModel(string member)
     : this()
 {
     setup(member);
     var journal = __member.Journals.SingleOrDefault(z => z.EntryDate == DateTime.Today);
     if (journal == null)
     {
         journal = new Journal();
         journal.EntryDate = DateTime.Now;
         journal.Member = __member;
         dm.Journals.AddObject(journal);
         dm.SaveChanges();
     }
     this.set(journal);
 }
 /// <summary>
 /// Create a new Journal object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="entryDate">Initial value of the EntryDate property.</param>
 /// <param name="encrypted">Initial value of the Encrypted property.</param>
 public static Journal CreateJournal(global::System.Int64 id, global::System.DateTime entryDate, global::System.Boolean encrypted)
 {
     Journal journal = new Journal();
     journal.Id = id;
     journal.EntryDate = entryDate;
     journal.Encrypted = encrypted;
     return journal;
 }