Esempio n. 1
0
        public ObjectRepository(SessionIdentifier session, DomainObjectInquiry objectInquiry)
        {
            m_link = new Dictionary<DomainLinkKey, DomainLink>(objectInquiry.ALinks.Count);

            foreach (DomainLinkConfig linkConfig in objectInquiry.ALinks)
            {
                DomainLinkKey key = new DomainLinkKey(linkConfig);
                DomainLink link = new DomainLink(linkConfig, session);

                m_link.Add(key, link);
            }
        }
Esempio n. 2
0
        public DomainApplication(DomainObjectInquiry inquiry, IDbCommonConnection connection, DomainObjectFactory objFactory)
        {
            if (inquiry == null)
                throw new ArgumentNullException("inquiry");

            m_inquiry = inquiry;

            if (connection == null)
                throw new ArgumentNullException("connection");

            m_connection = connection;

            m_documentManager = new DocumentManager(m_inquiry);
            m_objManager = new DomainObjectManager(m_inquiry, connection, objFactory);

            DbManager = new DbCommonManager(m_connection);
        }
        public DomainObjectManager(DomainObjectInquiry m_objectInquiry, IDbCommonConnection connection, DomainObjectFactory objectFactory)
        {
            if (m_objectInquiry == null)
                throw new ArgumentNullException("m_objectInquiry");
            m_inquiry = m_objectInquiry;

            if (connection == null)
                throw new ArgumentNullException("connection");
            m_connection = connection;

            if (objectFactory == null)
                throw new ArgumentNullException("objectFactory");
            ObjectFactory = objectFactory;

            SharedRepository = new SharedObjectRepository(m_inquiry, objectFactory);

            Instance = this;
        }
 public SharedObjectRepository(DomainObjectInquiry objectInquiry, DomainObjectFactory objectFactory)
 {
     m_sharedObjRepository = new ObjectRepository(SessionIdentifier.SHARED_SESSION, objectInquiry);
     m_objectFactory = objectFactory;
 }
Esempio n. 5
0
 internal Document(SessionIdentifier sid, DomainObjectInquiry inquiry)
 {
     Session = sid;
     m_objRepository = new ObjectRepository(Session, inquiry);
 }
Esempio n. 6
0
 public ObjectMonitor(DomainObjectInquiry objectInquiry)
 {
     m_objectInquiry = objectInquiry;
     m_instance = this;
 }