C# 클래스 nHydrate.Generator.Models.ColumnBase

This is the base for all column classes
상속: nHydrate.Generator.Common.GeneratorFramework.BaseModelObject
파일 보기 프로젝트 열기: nHydrate/nHydrate 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_allowNull bool
_category string
_dataType System.Data.SqlDbType
_description string
_generated bool
_id int
_isBrowsable bool
_length int
_name string
_prompt string
_scale int
_uIDataType System.ComponentModel.DataAnnotations.DataType

Private Properties

프로퍼티 타입 설명
GetAnnotationStringLength int
GetDefaultSize int
GetLengthString string
IsMaxLength bool

공개 메소드들

메소드 설명
ColumnBase ( INHydrateModelObject root ) : System
CreateRef ( ) : Reference
CreateRef ( string key ) : Reference
GetCodeType ( ) : string
GetCodeType ( bool allowNullable ) : string
GetCodeType ( bool allowNullable, bool forceNull ) : string
GetCommentLengthString ( ) : string

Gets a string reprsenting the data length for comments

This is not to be used for actual C# code or SQL

GetDataReaderMethodName ( ) : string

Gets the method of a datareader that corresponds to this specified datatype

GetPredefinedScale ( System dataType ) : int
GetPredefinedSize ( System dataType ) : int
GetSQLDefaultType ( ) : string

Gets the SQL Server type mapping for this data type

GetSQLDefaultType ( bool isRaw ) : string

Gets the SQL Server type mapping for this data type

IsSupportedType ( System type, SQLServerTypeConstants sqlVersion ) : bool

Determine if the specified type is

ResetId ( int id ) : void
SupportsLikeOperator ( ) : bool

Determines if this column can be used in a LIKE database operation

ToDatabaseCodeIdentifier ( ) : string

Create a valid T-SQL variable from the name

ToString ( ) : string
XmlAppend ( XmlNode node ) : void
XmlLoad ( XmlNode node ) : void

보호된 메소드들

메소드 설명
SetKey ( string key ) : void

비공개 메소드들

메소드 설명
GetAnnotationStringLength ( ) : int
GetDefaultSize ( System dataType ) : int
GetLengthString ( ) : string
IsMaxLength ( ) : bool

메소드 상세

ColumnBase() 공개 메소드

public ColumnBase ( INHydrateModelObject root ) : System
root INHydrateModelObject
리턴 System

CreateRef() 공개 추상적인 메소드

public abstract CreateRef ( ) : Reference
리턴 Reference

CreateRef() 공개 추상적인 메소드

public abstract CreateRef ( string key ) : Reference
key string
리턴 Reference

GetCodeType() 공개 메소드

public GetCodeType ( ) : string
리턴 string

GetCodeType() 공개 메소드

public GetCodeType ( bool allowNullable ) : string
allowNullable bool
리턴 string

GetCodeType() 공개 메소드

public GetCodeType ( bool allowNullable, bool forceNull ) : string
allowNullable bool
forceNull bool
리턴 string

GetCommentLengthString() 공개 메소드

Gets a string reprsenting the data length for comments
This is not to be used for actual C# code or SQL
public GetCommentLengthString ( ) : string
리턴 string

GetDataReaderMethodName() 공개 메소드

Gets the method of a datareader that corresponds to this specified datatype
public GetDataReaderMethodName ( ) : string
리턴 string

GetPredefinedScale() 공개 정적인 메소드

public static GetPredefinedScale ( System dataType ) : int
dataType System
리턴 int

GetPredefinedSize() 공개 정적인 메소드

public static GetPredefinedSize ( System dataType ) : int
dataType System
리턴 int

GetSQLDefaultType() 공개 메소드

Gets the SQL Server type mapping for this data type
public GetSQLDefaultType ( ) : string
리턴 string

GetSQLDefaultType() 공개 메소드

Gets the SQL Server type mapping for this data type
public GetSQLDefaultType ( bool isRaw ) : string
isRaw bool Determines if the square brackets '[]' are around the type
리턴 string

IsSupportedType() 공개 정적인 메소드

Determine if the specified type is
public static IsSupportedType ( System type, SQLServerTypeConstants sqlVersion ) : bool
type System
sqlVersion SQLServerTypeConstants
리턴 bool

ResetId() 공개 메소드

public ResetId ( int id ) : void
id int
리턴 void

SetKey() 보호된 메소드

protected SetKey ( string key ) : void
key string
리턴 void

SupportsLikeOperator() 공개 메소드

Determines if this column can be used in a LIKE database operation
public SupportsLikeOperator ( ) : bool
리턴 bool

ToDatabaseCodeIdentifier() 공개 메소드

Create a valid T-SQL variable from the name
public ToDatabaseCodeIdentifier ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

XmlAppend() 공개 추상적인 메소드

public abstract XmlAppend ( XmlNode node ) : void
node System.Xml.XmlNode
리턴 void

XmlLoad() 공개 추상적인 메소드

public abstract XmlLoad ( XmlNode node ) : void
node System.Xml.XmlNode
리턴 void

프로퍼티 상세

_allowNull 보호되어 있는 프로퍼티

protected bool _allowNull
리턴 bool

_category 보호되어 있는 프로퍼티

protected string _category
리턴 string

_dataType 보호되어 있는 프로퍼티

protected System.Data.SqlDbType _dataType
리턴 System.Data.SqlDbType

_description 보호되어 있는 프로퍼티

protected string _description
리턴 string

_generated 보호되어 있는 프로퍼티

protected bool _generated
리턴 bool

_id 보호되어 있는 프로퍼티

protected int _id
리턴 int

_isBrowsable 보호되어 있는 프로퍼티

protected bool _isBrowsable
리턴 bool

_length 보호되어 있는 프로퍼티

protected int _length
리턴 int

_name 보호되어 있는 프로퍼티

protected string _name
리턴 string

_prompt 보호되어 있는 프로퍼티

protected string _prompt
리턴 string

_scale 보호되어 있는 프로퍼티

protected int _scale
리턴 int

_uIDataType 보호되어 있는 프로퍼티

protected System.ComponentModel.DataAnnotations.DataType _uIDataType
리턴 System.ComponentModel.DataAnnotations.DataType