Class TableTypeDescriptor
Provides the means to describe the mapping relationship between a table and a .NET type.
Inheritance
Namespace: Paradigm.ORM.Data.Descriptors
Assembly: Paradigm.ORM.Data.dll
Syntax
public class TableTypeDescriptor : object, ITableTypeDescriptor, IColumnPropertyDescriptorCollection, ITableDescriptor
Constructors
| Improve this Doc View SourceTableTypeDescriptor(Type)
Initializes a new instance of the TableTypeDescriptor class.
Declaration
public TableTypeDescriptor(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type containing the mapping information, or the reference to the mapping information. |
See Also
Properties
| Improve this Doc View SourceAllColumns
Gets a list of column property descriptors for all the properties.
Declaration
public virtual List<IColumnDescriptor> AllColumns { get; }
Property Value
Type | Description |
---|---|
List<IColumnDescriptor> |
AllProperties
Gets a list of column property descriptors for all the properties.
Declaration
public virtual List<IColumnPropertyDescriptor> AllProperties { get; }
Property Value
Type | Description |
---|---|
List<IColumnPropertyDescriptor> |
CatalogName
Gets the name of the database catalog.
Declaration
public virtual string CatalogName { get; }
Property Value
Type | Description |
---|---|
System.String |
IdentityColumn
Gets the identity column descriptor.
Declaration
public virtual IColumnDescriptor IdentityColumn { get; }
Property Value
Type | Description |
---|---|
IColumnDescriptor |
IdentityProperty
Gets the identity column property descriptor.
Declaration
public virtual IColumnPropertyDescriptor IdentityProperty { get; }
Property Value
Type | Description |
---|---|
IColumnPropertyDescriptor |
NavigationProperties
Gets a list of navigation property descriptors for all the navigation properties.
Declaration
public virtual List<INavigationPropertyDescriptor> NavigationProperties { get; }
Property Value
Type | Description |
---|---|
List<INavigationPropertyDescriptor> |
PrimaryKeyColumns
Gets a list of column descriptors for all the primary keys.
Declaration
public virtual List<IColumnDescriptor> PrimaryKeyColumns { get; }
Property Value
Type | Description |
---|---|
List<IColumnDescriptor> |
PrimaryKeyProperties
Gets a list of column property descriptors for all the primary keys.
Declaration
public virtual List<IColumnPropertyDescriptor> PrimaryKeyProperties { get; }
Property Value
Type | Description |
---|---|
List<IColumnPropertyDescriptor> |
SchemaName
Gets the name of the database schema.
Declaration
public virtual string SchemaName { get; }
Property Value
Type | Description |
---|---|
System.String |
SimpleColumns
Gets a list of column descriptors for all the simple columns.
Declaration
public virtual List<IColumnDescriptor> SimpleColumns { get; }
Property Value
Type | Description |
---|---|
List<IColumnDescriptor> |
Remarks
Simple columns does not include the identity columns but will contain the primary keys.
SimpleProperties
Gets a list of column property descriptors for all the simple properties.
Declaration
public virtual List<IColumnPropertyDescriptor> SimpleProperties { get; }
Property Value
Type | Description |
---|---|
List<IColumnPropertyDescriptor> |
Remarks
Simple properties does not include the identity properties but will contain the primary keys.
TableName
Gets the name of the table.
Declaration
public virtual string TableName { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the mapping type.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
TypeName
Gets the name of the type.
Declaration
public virtual string TypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceIsNew(Object)
Determines whether the specified entity is new.
Declaration
public bool IsNew(object entity)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity | The entity. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A |