Aura.Msgr.Database.MsgrDb.SetNoteRead C# (CSharp) Method

SetNoteRead() public method

Sets read flag for given note.
public SetNoteRead ( long noteId ) : void
noteId long
return void
		public void SetNoteRead(long noteId)
		{
			using (var conn = this.Connection)
			using (var cmd = new UpdateCommand("UPDATE `notes` SET {0} WHERE `noteId` = @noteId", conn))
			{
				cmd.Set("read", true);
				cmd.AddParameter("@noteId", noteId);

				cmd.Execute();
			}
		}