コード例 #1
0
        private void AddSession(long entityId, IEnumerable<Change> changes)
        {
            // ensure that the entityId does NOT already exist in the Repository
            var session = SessionRepository.Get(entityId);
            if (session == null)
            {
                // this session does not exist - create it
                session = new Session() { SessionId = entityId };
                foreach (var change in changes)
                    session.UpdateProperty(change.Key, change.Value);

                SessionRepository.Add(session);
                ChangeLogProvider.SessionChangeLog.Add(new ProviderLogEntry
                                                           {
                                                               EntityId = session.SessionId,
                                                               ActionType = ActionType.Add,
                                                               EntityDisplay = session.Title
                                                           });
            }
        }
コード例 #2
0
 public void Add(Session item)
 {
 }