DataGenerationServices.MapColumnToDefaultDbType Method
Returns the database data type that you want to use as the default for the provided column.
Namespace: Microsoft.Data.Schema.Tools.DataGenerator
Assembly: Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)
Syntax
'Declaration
Public MustOverride Function MapColumnToDefaultDbType ( _
column As IDatabaseColumn _
) As DbType
public abstract DbType MapColumnToDefaultDbType(
IDatabaseColumn column
)
public:
virtual DbType MapColumnToDefaultDbType(
IDatabaseColumn^ column
) abstract
abstract MapColumnToDefaultDbType :
column:IDatabaseColumn -> DbType
public abstract function MapColumnToDefaultDbType(
column : IDatabaseColumn
) : DbType
Parameters
- column
Type: Microsoft.Data.Schema.SchemaModel.Abstract.IDatabaseColumn
An IDatabaseColumn object.
Return Value
Type: System.Data.DbType
The default database data type.
Remarks
Provide this information through this method so that your database schema model can be represented in Visual Studio projects, where users can create and manipulate database objects that you have defined in your model.
.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.