Ejemplo n.º 1
0
        public void Create(Note noteToAdd, IEnumerable <Category> newCategories)
        {
            NoteWithCategories note = NoteWithCategories.Convert(noteToAdd, newCategories);

            session.Store(note);
            session.SaveChanges();
        }
Ejemplo n.º 2
0
        public void Create(Note noteToAdd, IEnumerable <Category> newCategories)
        {
            NoteWithCategories note = NoteWithCategories.Convert(noteToAdd, newCategories);

            using (var notes = redisClient.GetTypedClient <NoteWithCategories>())
            {
                note.Id = notes.GetNextSequence().AsString();
                notes.Store(note);
            }
        }
Ejemplo n.º 3
0
        public void Create(Note noteToAdd, IEnumerable <Category> newCategories)
        {
            NoteWithCategories note = NoteWithCategories.Convert(noteToAdd, newCategories);

            notes.Insert(note);
        }