Show / Hide Table of Contents

    Class SqlServerParseDefaultValueEventArgs

    Arguments for the event ParseDefaultValue.

    Inheritance
    System.Object
    System.EventArgs
    SqlServerParseDefaultValueEventArgs
    Namespace: Kros.Data.Schema.SqlServer
    Assembly: Kros.Utils.dll
    Syntax
    public class SqlServerParseDefaultValueEventArgs : EventArgs

    Constructors

    SqlServerParseDefaultValueEventArgs(String, String, SqlDbType, String, Object)

    Creates and initializes instance of arguments.

    Declaration
    public SqlServerParseDefaultValueEventArgs(string tableName, string columnName, SqlDbType sqlDbType, string defaultValueString, object defaultValue)
    Parameters
    Type Name Description
    System.String tableName
    System.String columnName
    System.Data.SqlDbType sqlDbType
    System.String defaultValueString
    System.Object defaultValue

    Value, which was obtained by default parser.

    Properties

    ColumnName

    Column name which default value is being parsed.

    Declaration
    public string ColumnName { get; }
    Property Value
    Type Description
    System.String

    DefaultValue

    Value, which was obtained by default parser. Set this value, when using custom logic for parsing default value in event handler.

    Declaration
    public object DefaultValue { get; set; }
    Property Value
    Type Description
    System.Object

    DefaultValueString

    Default value of a column. It is the string which is being parsed.

    Declaration
    public string DefaultValueString { get; }
    Property Value
    Type Description
    System.String

    Handled

    Flag indicating if default value was parsed using custom logic in event handler. Set this to true if you set your own default value in DefaultValue.

    Declaration
    public bool Handled { get; set; }
    Property Value
    Type Description
    System.Boolean

    SqlDbType

    Data type of column which default value is being parsed.

    Declaration
    public SqlDbType SqlDbType { get; }
    Property Value
    Type Description
    System.Data.SqlDbType

    TableName

    Table which schema is being loaded.

    Declaration
    public string TableName { get; }
    Property Value
    Type Description
    System.String
    Back to top KROS a.s.