Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

DatabaseMetadataCache<(Of <(<'TObjectName, TDbType>)>)>..::..GetTableOrViewFromClass Method (Type, OperationType)

Returns the table or view derived from the class's name and/or Table attribute.

Namespace:  Tortuga.Chain.Metadata
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public TableOrViewMetadata<TObjectName, TDbType> GetTableOrViewFromClass(
	Type type,
	OperationType operation
)
Public Function GetTableOrViewFromClass ( _
	type As Type, _
	operation As OperationType _
) As TableOrViewMetadata(Of TObjectName, TDbType)
public:
TableOrViewMetadata<TObjectName, TDbType>^ GetTableOrViewFromClass(
	Type^ type, 
	OperationType^ operation
)

Parameters

type
Type: Type
operation
Type: Tortuga.Chain.Metadata..::..OperationType
The operation.

Return Value

DatabaseObject.