Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    SpecialDbTypeAttribute(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.

    View Source

    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 Source

    DatabaseType

    Gets or sets the SpecialDbType for this column

    Declaration
    public SpecialDbType DatabaseType { get; }
    Property Value
    Type Description
    SpecialDbType
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX