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)); } }
public KellPersistence.Data <ClonableObject> Query(Guid id) { KellPersistence.Data <ClonableObject> data = trunk.Select(id); return(data); }