Beispiel #1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Creates and initializes a new instance of the FwUserProperties class. Accepts an
		/// FdoCache that encapsulates a DB connection.
		/// </summary>
		/// <param name="cache">Accessor for data cache and DB connection</param>
		/// <param name="features">A list of application features available to the user</param>
		/// ------------------------------------------------------------------------------------
		public FwUserProperties(FdoCache cache, Feature[] features): this()
		{
			if (cache == null)
				throw new Exception("Null Cache passed toFwUserProperties");
			m_Cache = cache;
			m_Features = features;

			Initialize();
		}
Beispiel #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes the FwUserProperties class. Clients written in .Net with an FdoCache
		/// should use the version of the constructor that accepts an FdoCache. COM clients that
		/// do not have an FdoCache should use the default consructor and then call this method
		/// to initialize the object.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public void Initialize(IOleDbEncap ode, IFwMetaDataCache mdc, IVwOleDbDa oleDbAccess,
			Feature[] features)
		{
			CheckDisposed();

			m_Cache = new FdoCache(ode, mdc, oleDbAccess);
			m_cacheMadeLocally = true;
			m_Features = features;

			Initialize();
		}