Beispiel #1
0
 /// <summary>
 /// <para>
 /// Initialize a new instance of the <see cref="DatabaseTypeCollectionNode"/> class with a <see cref="DatabaseTypeDataCollection"/> object.
 /// </para>
 /// </summary>
 /// <param name="databaseTypeDataCollection">
 /// <para>The <see cref="DatabaseTypeDataCollection"/> configuration.</para>
 /// </param>
 public DatabaseTypeCollectionNode(DatabaseTypeDataCollection databaseTypeDataCollection) : base()
 {
     if (databaseTypeDataCollection == null)
     {
         throw new ArgumentNullException("databaseTypes");
     }
     this.databaseTypeDataCollection = databaseTypeDataCollection;
 }
 /// <summary>
 /// <para>
 /// Initialize a new instance of the <see cref="DatabaseTypeCollectionNode"/> class with a <see cref="DatabaseTypeDataCollection"/> object.
 /// </para>
 /// </summary>
 /// <param name="databaseTypeDataCollection">
 /// <para>The <see cref="DatabaseTypeDataCollection"/> configuration.</para>
 /// </param>
 public DatabaseTypeCollectionNode(DatabaseTypeDataCollection databaseTypeDataCollection)
     : base()
 {
     if (databaseTypeDataCollection == null)
     {
         throw new ArgumentNullException("databaseTypes");
     }
     this.databaseTypeDataCollection = databaseTypeDataCollection;
 }
Beispiel #3
0
        private void GetDynamicQueryTypeDataCollection()
        {
            DatabaseTypeCollectionNode node = Hierarchy.FindNodeByType(typeof(DatabaseTypeCollectionNode)) as DatabaseTypeCollectionNode;

            if (node == null)
            {
                return;
            }

            DatabaseTypeDataCollection data = node.DatabaseTypeDataCollection;

            if (Object.ReferenceEquals(dynamicQuerySettings.DatabaseTypes, data))
            {
                return;
            }

            dynamicQuerySettings.DatabaseTypes.Clear();
            foreach (DatabaseTypeData databaseTypeData in data)
            {
                dynamicQuerySettings.DatabaseTypes[databaseTypeData.Name] = databaseTypeData;
            }
        }
Beispiel #4
0
 public void SetUp()
 {
     databaseTypes = new DatabaseTypeDataCollection();
 }
 public void SetUp()
 {
     databaseTypes = new DatabaseTypeDataCollection();
 }