Show / Hide Table of Contents

    Class SqlServerColumnSchema

    Table's column schema for Microsoft SQL Server.

    Inheritance
    System.Object
    ColumnSchema
    SqlServerColumnSchema
    Inherited Members
    ColumnSchema.DefaultDefaultValue
    ColumnSchema.DefaultAllowNull
    ColumnSchema.DefaultSize
    ColumnSchema.Table
    ColumnSchema.Name
    ColumnSchema.FullName
    ColumnSchema.AllowNull
    ColumnSchema.DefaultValue
    ColumnSchema.Size
    ColumnSchema.ToStringDefaultValue()
    Namespace: Kros.Data.Schema.SqlServer
    Assembly: Kros.Utils.dll
    Syntax
    public class SqlServerColumnSchema : ColumnSchema

    Constructors

    SqlServerColumnSchema(String)

    Declaration
    public SqlServerColumnSchema(string name)
    Parameters
    Type Name Description
    System.String name

    SqlServerColumnSchema(String, Boolean)

    Declaration
    public SqlServerColumnSchema(string name, bool allowNull)
    Parameters
    Type Name Description
    System.String name
    System.Boolean allowNull

    SqlServerColumnSchema(String, Boolean, Object)

    Declaration
    public SqlServerColumnSchema(string name, bool allowNull, object defaultValue)
    Parameters
    Type Name Description
    System.String name
    System.Boolean allowNull
    System.Object defaultValue

    SqlServerColumnSchema(String, Boolean, Object, Int32)

    Declaration
    public SqlServerColumnSchema(string name, bool allowNull, object defaultValue, int size)
    Parameters
    Type Name Description
    System.String name
    System.Boolean allowNull
    System.Object defaultValue
    System.Int32 size

    Properties

    SqlDbType

    Data type of the column.

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

    Methods

    SetParameterDbType(IDataParameter)

    Declaration
    public override void SetParameterDbType(IDataParameter param)
    Parameters
    Type Name Description
    System.Data.IDataParameter param
    Overrides
    ColumnSchema.SetParameterDbType(IDataParameter)
    Exceptions
    Type Condition
    System.ArgumentException

    Value of param is not of type System.Data.SqlClient.SqlParameter.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    Back to top KROS a.s.