Example #1
0
 private void SaveMessage(BaseMessage msg)
 {
     KellPersistence.Trunk <BaseMessage> trunk = new KellPersistence.Trunk <BaseMessage>(msg.Type.FullName);
     KellPersistence.Data <BaseMessage>  data  = trunk.Select(msg.ID);
     if (data != null)
     {
         trunk.Update(data);
     }
     else
     {
         trunk.Insert(new KellPersistence.Data <BaseMessage>(trunk, msg, Common.ClientId));
     }
 }
Example #2
0
 public KellPersistence.Data <ClonableObject> Query(Guid id)
 {
     KellPersistence.Data <ClonableObject> data = trunk.Select(id);
     return(data);
 }