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()
Assembly: EPiServer.Data.dll
Version: 9.12.2
public class TableInformation
Constructors
Declaration
public TableInformation()
Declaration
protected TableInformation(TableInformation other)
Parameters
Properties
Declaration
public bool HasColumns { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool SupportsMultipleRows { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public void AddColumn(ColumnInformation col)
Parameters
Declaration
public void AddColumns(IEnumerable<ColumnInformation> cols)
Parameters
Declaration
public virtual TableInformation Clone()
Returns
Declaration
public static TableInformation Get(string tableName)
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
Returns
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
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
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
Declaration
protected static DbType MapTypeToDbType(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Data.DbType |
|
Declaration
public bool RemoveColumn(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods