C# Класс nHydrate.Generator.Models.ColumnBase

This is the base for all column classes
Наследование: nHydrate.Generator.Common.GeneratorFramework.BaseModelObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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