C# Class SchemaZen.Library.Models.Column

Show file Open project: sethreno/schemazen Class Usage Examples

Public Properties

Property Type Description
ComputedDefinition string
Default Default
Identity Identity
IsNullable bool
IsRowGuidCol bool
Length int
Name string
Position int
Precision byte
Scale int
Type string

Private Properties

Property Type Description
ScriptBase string
SqlTypeToNativeType System.Type

Public Methods

Method Description
Column ( ) : System
Column ( string name, string type, bool nullable, Default defaultValue ) : System
Column ( string name, string type, byte precision, int scale, bool nullable, Default defaultValue ) : System
Column ( string name, string type, int length, bool nullable, Default defaultValue ) : System
Compare ( Column c ) : ColumnDiff
ScriptAlter ( ) : string
ScriptCreate ( ) : string
SqlTypeToNativeType ( ) : Type

Private Methods

Method Description
ScriptBase ( bool includeDefaultConstraint ) : string
SqlTypeToNativeType ( string sqlType ) : Type

Method Details

Column() public method

public Column ( ) : System
return System

Column() public method

public Column ( string name, string type, bool nullable, Default defaultValue ) : System
name string
type string
nullable bool
defaultValue Default
return System

Column() public method

public Column ( string name, string type, byte precision, int scale, bool nullable, Default defaultValue ) : System
name string
type string
precision byte
scale int
nullable bool
defaultValue Default
return System

Column() public method

public Column ( string name, string type, int length, bool nullable, Default defaultValue ) : System
name string
type string
length int
nullable bool
defaultValue Default
return System

Compare() public method

public Compare ( Column c ) : ColumnDiff
c Column
return ColumnDiff

ScriptAlter() public method

public ScriptAlter ( ) : string
return string

ScriptCreate() public method

public ScriptCreate ( ) : string
return string

SqlTypeToNativeType() public method

public SqlTypeToNativeType ( ) : Type
return System.Type

Property Details

ComputedDefinition public property

public string ComputedDefinition
return string

Default public property

public Default,SchemaZen.Library.Models Default
return Default

Identity public property

public Identity,SchemaZen.Library.Models Identity
return Identity

IsNullable public property

public bool IsNullable
return bool

IsRowGuidCol public property

public bool IsRowGuidCol
return bool

Length public property

public int Length
return int

Name public property

public string Name
return string

Position public property

public int Position
return int

Precision public property

public byte Precision
return byte

Scale public property

public int Scale
return int

Type public property

public string Type
return string