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;
 }