November Happy Hour will be moved to Thursday December 5th.

Class TableInformation

Class that contains information for a database table mapping

Inheritance
System.Object
TableInformation
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Data.Dynamic.Providers
Assembly: EPiServer.Data.dll
Version: 9.12.2
Syntax
public class TableInformation

Constructors

TableInformation()

Declaration
public TableInformation()

TableInformation(TableInformation)

Declaration
protected TableInformation(TableInformation other)
Parameters
Type Name Description
TableInformation other

Properties

HasColumns

Declaration
public bool HasColumns { get; }
Property Value
Type Description
System.Boolean

SupportsMultipleRows

Declaration
public virtual bool SupportsMultipleRows { get; }
Property Value
Type Description
System.Boolean

Methods

AddColumn(ColumnInformation)

Declaration
public void AddColumn(ColumnInformation col)
Parameters
Type Name Description
ColumnInformation col

AddColumns(IEnumerable<ColumnInformation>)

Declaration
public void AddColumns(IEnumerable<ColumnInformation> cols)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ColumnInformation> cols

Clone()

Declaration
public virtual TableInformation Clone()
Returns
Type Description
TableInformation

Get(String)

Declaration
public static TableInformation Get(string tableName)
Parameters
Type Name Description
System.String tableName
Returns
Type Description
TableInformation

GetColumn(String, Boolean)

Get a column that has the same name as name

Declaration
public ColumnInformation GetColumn(string name, bool remove)
Parameters
Type Name Description
System.String name

The name of the column to get

System.Boolean remove

true if the column should be removed from the collection is therefore not available in future calls to GetColumn

Returns
Type Description
ColumnInformation

A ColumnInformation instance

GetColumn(Type, Boolean)

Get a non-indexed column that type can be mapped to

Declaration
public ColumnInformation GetColumn(Type type, bool remove)
Parameters
Type Name Description
System.Type type

The System.Type that will be mapped to the column

System.Boolean remove

true if the column should be removed from the collection is therefore not available in future calls to GetColumn

Returns
Type Description
ColumnInformation

A ColumnInformation instance

GetColumn(Type, Boolean, Boolean)

Get a column that type can be mapped to

Declaration
public ColumnInformation GetColumn(Type type, bool requireIndexed, bool remove)
Parameters
Type Name Description
System.Type type

The System.Type that will be mapped to the column

System.Boolean requireIndexed

true if the column mapped is required to be indexed

System.Boolean remove

true if the column should be removed from the collection is therefore not available in future calls to GetColumn

Returns
Type Description
ColumnInformation

A ColumnInformation instance

MapTypeToDbType(Type)

Declaration
protected static DbType MapTypeToDbType(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Data.DbType

RemoveColumn(String)

Declaration
public bool RemoveColumn(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Boolean

Extension Methods