XTableDefMap Class |
Namespace: Biolomics.BioCallback
The XTableDefMap type exposes the following members.
Name | Description | |
---|---|---|
XTableDefMap |
Initializes a new instance of the XTableDefMap class.
| |
XTableDefMap(TTableDefMap) |
Initializes a new instance of the XTableDefMap class.
|
Name | Description | |
---|---|---|
Comparer | Gets the generic equality comparer that is used to determine equality of keys in the collection. (Inherited from KeyedCollectionInt64, XTableDef.) | |
Count | Gets the number of elements actually contained in the CollectionT. (Inherited from CollectionXTableDef.) | |
Dictionary | Gets the lookup dictionary of the KeyedCollectionTKey, TItem. (Inherited from KeyedCollectionInt64, XTableDef.) | |
ItemTKey | Gets the element with the specified key. (Inherited from KeyedCollectionInt64, XTableDef.) | |
ItemInt32 | Gets or sets the element at the specified index. (Inherited from CollectionXTableDef.) | |
Items | Gets a IListT wrapper around the CollectionT. (Inherited from CollectionXTableDef.) |
Name | Description | |
---|---|---|
Add | Adds an object to the end of the CollectionT. (Inherited from CollectionXTableDef.) | |
ChangeItemKey | Changes the key associated with the specified element in the lookup dictionary. (Inherited from KeyedCollectionInt64, XTableDef.) | |
Clear | Removes all elements from the CollectionT. (Inherited from CollectionXTableDef.) | |
ClearItems | Removes all elements from the KeyedCollectionTKey, TItem. (Inherited from KeyedCollectionInt64, XTableDef.) | |
Clone |
Clones this instance.
| |
Contains(TKey) | Determines whether the collection contains an element with the specified key. (Inherited from KeyedCollectionInt64, XTableDef.) | |
Contains(T) | Determines whether an element is in the CollectionT. (Inherited from CollectionXTableDef.) | |
CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from CollectionXTableDef.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Inherited from CollectionXTableDef.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetItemByIdx |
Gets the item by index.
| |
GetKeyForItem |
When implemented in a derived class, extracts the key from the specified element.
(Overrides KeyedCollectionTKey, TItemGetKeyForItem(TItem).) | |
GetTableByDBName |
Gets the table definition by database name.
| |
GetTableByUserName |
Gets the table definition by database name.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Inherited from CollectionXTableDef.) | |
Insert | Inserts an element into the CollectionT at the specified index. (Inherited from CollectionXTableDef.) | |
InsertItem | Inserts an element into the KeyedCollectionTKey, TItem at the specified index. (Inherited from KeyedCollectionInt64, XTableDef.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(Int64) |
Removes the specified element by key.
| |
Remove(T) | Removes the first occurrence of a specific object from the CollectionT. (Inherited from CollectionXTableDef.) | |
RemoveAt | Removes the element at the specified index of the CollectionT. (Inherited from CollectionXTableDef.) | |
RemoveItem | Removes the element at the specified index of the KeyedCollectionTKey, TItem. (Inherited from KeyedCollectionInt64, XTableDef.) | |
SetItem | Replaces the item at the specified index with the specified item. (Inherited from KeyedCollectionInt64, XTableDef.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Equality |
Implements the operator = operator.
| |
Inequality |
Implements the operator <> operator.
|
Imports System Imports Biolomics.BioCallback Imports Biolomics.SharedClasses Imports Biolomics.Utility.DatabaseConstants Imports Biolomics.BaseLibrary Public Class Program <STAThread()> Shared Sub Main() Dim c As New Program c.Test() End Sub ' Write sub functions here Public Sub Test() ' get the current connection Dim SqlCo As XConnection = Run.GetCurrentConnection() If SqlCo Is Nothing Then Return End If ' get the current layout Dim Layout As XDataLayout = Run.GetCurrentLayout() If Layout Is Nothing Then ' no current layout in a search page Return End If ' scan table names from the current connection and get all tables with name (in the database) starting with "taxons_" Dim TaxonTableDeflist As New XTableDefMap For Each TableDef As XTableDef In SqlCo.TableDefMap If TableDef.UserName.Length >= 7 AndAlso TableDef.UserName.ToLower.Substring(0, 7) = "Searching_String" Then TaxonTableDeflist.Add(TableDef) End If Next Console.Write("There is " & TaxonTableDeflist.Count.ToString & " table in this list") End Sub End Class