コード例 #1
0
 protected override NoteData CreateData(Note source, int id, string parentType)
 {
     var data = CreateDataFor(source, id, null, parentType);
     data.ParentType = parentType;
     NoteData.SetParent(db, parentType, data);
     // var project = ItemData<Task, Item>.GetProject(data.Parent, db);
     data.Entity.ProjectId = data.ParentItem.ProjectId;
     db.SaveChanges();
     return data;
 }
コード例 #2
0
 protected override NoteData CreateData(Note t, int id)
 {
     return CreateDataFor(t, id);
 }