Поделиться через


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

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

See Also

Reference

DataGenerationServices Class

Microsoft.Data.Schema.Tools.DataGenerator Namespace

MapColumnToDbTypes

DbType