Click or drag to resize
XTableDef Class
Class XTableDef.
Inheritance Hierarchy
SystemObject
  Biolomics.BioCallbackXTableDef

Namespace:  Biolomics.BioCallback
Assembly:  Biolomics.BioCallback (in Biolomics.BioCallback.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class XTableDef

The XTableDef type exposes the following members.

Constructors
  NameDescription
Public methodXTableDef(TTableDef)
Initializes a new instance of the XTableDef class.
Public methodXTableDef(XTableDef)
Initializes a new instance of the XTableDef class.
Top
Methods
  NameDescription
Public methodClone
Clones this instance.
Public methodConnectionKey
Gets the Connection key.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodId
Gets the tabledef Id.
Public methodIsNothing
Determines whether this instance is nothing.
Public methodKey
Gets The tabledef Key.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNameColumnTitle
Gets the Name column title.
Public methodSqlName
Gets the table sqlName.
Public methodTableComment
Gets the Table comment.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodUserName
Gets the Table User name.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator = operator.
Public operatorStatic memberInequality
Implements the operator <> operator.
Top
Examples
This is an example shows how to get table definitions from connection.
Example VB.Net
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
See Also