Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1.  public class NoteDetails
  2.     {
  3.         [SQLite.PrimaryKey, SQLite.AutoIncrement]
  4.         public int NoteID { get; set; }
  5.         public string NoteTitle { get; set; }
  6.         public string NoteContent { get; set; }
  7.         public DateTime NoteDate { get; set; }
  8.  
  9.         public NoteDetails() { } // Constructor
  10.  
  11.         public NoteDetails(int noteid, string notetitle, string notecontent,
  12.             DateTime notedate)
  13.         {
  14.             this.NoteID = noteid;
  15.             this.NoteTitle = notetitle;
  16.             this.NoteContent = notecontent;
  17.             this.NoteDate = notedate;
  18.         }
  19.  
  20.         public static string DBPath()
  21.         {
  22.             return Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "NoteDetails.db");
  23.         }
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement