Class DbTypes
Represents the set of database type definitions used for SQL syntax operations.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Persistence.SqlSyntax
Assembly: Umbraco.Infrastructure.dll
Syntax
public class DbTypes
Constructors
View SourceDbTypes(IReadOnlyDictionary<Type, string>, IReadOnlyDictionary<Type, DbType>)
Initializes a new instance of the DbTypes class with the specified type mappings.
Declaration
public DbTypes(IReadOnlyDictionary<Type, string> columnTypeMap, IReadOnlyDictionary<Type, DbType> columnDbTypeMap)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyDictionary<Type, string> | columnTypeMap | A read-only dictionary that maps CLR types to their corresponding database column type strings. |
| IReadOnlyDictionary<Type, DbType> | columnDbTypeMap | A read-only dictionary that maps CLR types to their corresponding System.Data.DbType values. |
Properties
View SourceColumnDbTypeMap
Gets a read-only dictionary that maps Common Language Runtime (CLR) types to their corresponding System.Data.DbType values used in database operations.
Declaration
public IReadOnlyDictionary<Type, DbType> ColumnDbTypeMap { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<Type, DbType> |
ColumnTypeMap
Gets a read-only dictionary that maps CLR types to their corresponding SQL database column type strings, used for resolving database column types during SQL generation.
Declaration
public IReadOnlyDictionary<Type, string> ColumnTypeMap { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<Type, string> |