TableStore.OverrideGeneratorInstance Method
Allows the store to supersede a particular generator for a column, regardless of what's currently in the data generator plan. This is useful for the preview store, which creates generators for server-side computed columns.
Namespace: Microsoft.Data.Schema.DataGenerator
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Overridable Function OverrideGeneratorInstance ( _
parentTable As ITable, _
targetColumn As IColumn _
) As IGenerator
'Usage
Dim instance As TableStore
Dim parentTable As ITable
Dim targetColumn As IColumn
Dim returnValue As IGenerator
returnValue = instance.OverrideGeneratorInstance(parentTable, _
targetColumn)
public virtual IGenerator OverrideGeneratorInstance(
ITable parentTable,
IColumn targetColumn
)
public:
virtual IGenerator^ OverrideGeneratorInstance(
ITable^ parentTable,
IColumn^ targetColumn
)
public function OverrideGeneratorInstance(
parentTable : ITable,
targetColumn : IColumn
) : IGenerator
abstract OverrideGeneratorInstance :
parentTable:ITable *
targetColumn:IColumn -> IGenerator
override OverrideGeneratorInstance :
parentTable:ITable *
targetColumn:IColumn -> IGenerator
Parameters
- parentTable
Type: Microsoft.Data.Schema.SchemaModel.Abstract.ITable
The table for which the generator instance is to be used.
- targetColumn
Type: Microsoft.Data.Schema.SchemaModel.Abstract.IColumn
The column for which the generator instance is to be used.
Return Value
Type: Microsoft.Data.Schema.DataGenerator.IGenerator
Returns a valid generator instance (with all inputs set) if the specified column's generator should be replaced. If the generator is to remain the same, this method should return a NULL.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.