C# Class nHydrate.Generator.Models.ColumnBase

This is the base for all column classes
Inheritance: nHydrate.Generator.Common.GeneratorFramework.BaseModelObject
Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Protected Properties

Свойство Type Description
_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

Свойство Type Description
GetAnnotationStringLength int
GetDefaultSize int
GetLengthString string
IsMaxLength bool

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
SetKey ( string key ) : void

Private Methods

Méthode Description
GetAnnotationStringLength ( ) : int
GetDefaultSize ( System dataType ) : int
GetLengthString ( ) : string
IsMaxLength ( ) : bool

Method Details

ColumnBase() public méthode

public ColumnBase ( INHydrateModelObject root ) : System
root INHydrateModelObject
Résultat System

CreateRef() public abstract méthode

public abstract CreateRef ( ) : Reference
Résultat Reference

CreateRef() public abstract méthode

public abstract CreateRef ( string key ) : Reference
key string
Résultat Reference

GetCodeType() public méthode

public GetCodeType ( ) : string
Résultat string

GetCodeType() public méthode

public GetCodeType ( bool allowNullable ) : string
allowNullable bool
Résultat string

GetCodeType() public méthode

public GetCodeType ( bool allowNullable, bool forceNull ) : string
allowNullable bool
forceNull bool
Résultat string

GetCommentLengthString() public méthode

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

GetDataReaderMethodName() public méthode

Gets the method of a datareader that corresponds to this specified datatype
public GetDataReaderMethodName ( ) : string
Résultat string

GetPredefinedScale() public static méthode

public static GetPredefinedScale ( System dataType ) : int
dataType System
Résultat int

GetPredefinedSize() public static méthode

public static GetPredefinedSize ( System dataType ) : int
dataType System
Résultat int

GetSQLDefaultType() public méthode

Gets the SQL Server type mapping for this data type
public GetSQLDefaultType ( ) : string
Résultat string

GetSQLDefaultType() public méthode

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
Résultat string

IsSupportedType() public static méthode

Determine if the specified type is
public static IsSupportedType ( System type, SQLServerTypeConstants sqlVersion ) : bool
type System
sqlVersion SQLServerTypeConstants
Résultat bool

ResetId() public méthode

public ResetId ( int id ) : void
id int
Résultat void

SetKey() protected méthode

protected SetKey ( string key ) : void
key string
Résultat void

SupportsLikeOperator() public méthode

Determines if this column can be used in a LIKE database operation
public SupportsLikeOperator ( ) : bool
Résultat bool

ToDatabaseCodeIdentifier() public méthode

Create a valid T-SQL variable from the name
public ToDatabaseCodeIdentifier ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

XmlAppend() public abstract méthode

public abstract XmlAppend ( XmlNode node ) : void
node System.Xml.XmlNode
Résultat void

XmlLoad() public abstract méthode

public abstract XmlLoad ( XmlNode node ) : void
node System.Xml.XmlNode
Résultat void

Property Details

_allowNull protected_oe property

protected bool _allowNull
Résultat bool

_category protected_oe property

protected string _category
Résultat string

_dataType protected_oe property

protected System.Data.SqlDbType _dataType
Résultat System.Data.SqlDbType

_description protected_oe property

protected string _description
Résultat string

_generated protected_oe property

protected bool _generated
Résultat bool

_id protected_oe property

protected int _id
Résultat int

_isBrowsable protected_oe property

protected bool _isBrowsable
Résultat bool

_length protected_oe property

protected int _length
Résultat int

_name protected_oe property

protected string _name
Résultat string

_prompt protected_oe property

protected string _prompt
Résultat string

_scale protected_oe property

protected int _scale
Résultat int

_uIDataType protected_oe property

protected System.ComponentModel.DataAnnotations.DataType _uIDataType
Résultat System.ComponentModel.DataAnnotations.DataType