XTableDef Class |
Namespace: Biolomics.BioCallback
The XTableDef type exposes the following members.
Name | Description | |
---|---|---|
XTableDef(TTableDef) |
Initializes a new instance of the XTableDef class.
| |
XTableDef(XTableDef) |
Initializes a new instance of the XTableDef class.
|
Name | Description | |
---|---|---|
Clone |
Clones this instance.
| |
ConnectionKey |
Gets the Connection key.
| |
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.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Id |
Gets the tabledef Id.
| |
IsNothing |
Determines whether this instance is nothing.
| |
Key |
Gets The tabledef Key.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NameColumnTitle |
Gets the Name column title.
| |
SqlName |
Gets the table sqlName.
| |
TableComment |
Gets the Table comment.
| |
ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) | |
UserName |
Gets the Table User name.
|
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