Class SpecialDbTypeAttribute
Attribute that represents the usage of a special type
Inheritance
object
Attribute
Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
Assembly: Umbraco.Infrastructure.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class SpecialDbTypeAttribute : Attribute
Remarks
Should only be used when the .NET type can't be directly translated to a DbType.
Constructors
View SourceSpecialDbTypeAttribute(string)
Initializes a new instance of the SpecialDbTypeAttribute class, associating it with the specified database type.
Declaration
public SpecialDbTypeAttribute(string databaseType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | databaseType | The name of the database type to associate with this attribute. |
SpecialDbTypeAttribute(SpecialDbTypes)
Initializes a new instance of the SpecialDbTypeAttribute class with the specified database type.
Declaration
public SpecialDbTypeAttribute(SpecialDbTypes databaseType)
Parameters
| Type | Name | Description |
|---|---|---|
| SpecialDbTypes | databaseType | The special database type to use. |
Properties
View SourceDatabaseType
Gets or sets the SpecialDbType for this column
Declaration
public SpecialDbType DatabaseType { get; }
Property Value
| Type | Description |
|---|---|
| SpecialDbType |