コード例 #1
0
 public Task Add(Task entity)
 {
     using (IDocumentSession session = _store.OpenSession())
     {
         session.Store(entity);
         session.SaveChanges();
     }
     return entity;
 }
コード例 #2
0
 public Task Update(Task entity)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public Task Update(Task entity)
 {
     //using (IDocumentSession session = _store.OpenSession())
     //{
     //    var wawel = session.Load<Task>("locations/1");
     //    wawel.Description = "changed description";
     //    session.SaveChanges();
     //}
     throw new NotImplementedException();
 }
コード例 #4
0
 public Task Add(Task task)
 {
     task.TaskId = _nextId++;
     _tasks.Add(task);
     return task;
 }