C# Class nHydrate.Generator.Models.Column

Inheritance: ColumnBase, ICodeFacadeObject, INamedObject
显示文件 Open project: nHydrate/nHydrate Class Usage Examples

Protected Properties

Property Type Description
_codeFacade string
_collate string
_computedColumn bool
_default string
_defaultIsFunc bool
_formula string
_identity IdentityTypeConstants
_isReadOnly bool
_isUnique bool
_obsolete bool
_parentTableRef Reference
_primaryKey bool
_relationshipRef Reference
_validationExpression string

Private Properties

Property Type Description
GetFriendlyName string
GetIntellisenseRemarks string
IsValidDefault bool
IsValidDefault bool
SupportsIdentity bool

Public Methods

Method Description
CanHaveDefault ( ) : bool
Column ( INHydrateModelObject root ) : System
CreateRef ( ) : Reference
CreateRef ( string key ) : Reference
GetCodeDefault ( ) : string

Gets the C# code equivalent for this default value

GetCodeFacade ( ) : string
GetCodeType ( bool allowNullable, bool forceNull ) : string
GetSQLDefault ( ) : string

Gets the SQL equivalent for this default value

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

Protected Methods

Method Description
ResetKey ( ) : void

Private Methods

Method Description
GetFriendlyName ( ) : string
GetIntellisenseRemarks ( ) : string
IsValidDefault ( ) : bool
IsValidDefault ( string value ) : bool
SupportsIdentity ( ) : bool

Method Details

CanHaveDefault() public method

public CanHaveDefault ( ) : bool
return bool

Column() public method

public Column ( INHydrateModelObject root ) : System
root INHydrateModelObject
return System

CreateRef() public method

public CreateRef ( ) : Reference
return Reference

CreateRef() public method

public CreateRef ( string key ) : Reference
key string
return Reference

GetCodeDefault() public method

Gets the C# code equivalent for this default value
public GetCodeDefault ( ) : string
return string

GetCodeFacade() public method

public GetCodeFacade ( ) : string
return string

GetCodeType() public method

public GetCodeType ( bool allowNullable, bool forceNull ) : string
allowNullable bool
forceNull bool
return string

GetSQLDefault() public method

Gets the SQL equivalent for this default value
public GetSQLDefault ( ) : string
return string

ResetKey() protected method

protected ResetKey ( ) : void
return void

XmlAppend() public method

public XmlAppend ( XmlNode node ) : void
node System.Xml.XmlNode
return void

XmlLoad() public method

public XmlLoad ( XmlNode node ) : void
node System.Xml.XmlNode
return void

Property Details

_codeFacade protected_oe property

protected string _codeFacade
return string

_collate protected_oe property

protected string _collate
return string

_computedColumn protected_oe property

protected bool _computedColumn
return bool

_default protected_oe property

protected string _default
return string

_defaultIsFunc protected_oe property

protected bool _defaultIsFunc
return bool

_formula protected_oe property

protected string _formula
return string

_identity protected_oe property

protected IdentityTypeConstants _identity
return IdentityTypeConstants

_isReadOnly protected_oe property

protected bool _isReadOnly
return bool

_isUnique protected_oe property

protected bool _isUnique
return bool

_obsolete protected_oe property

protected bool _obsolete
return bool

_parentTableRef protected_oe property

protected Reference _parentTableRef
return Reference

_primaryKey protected_oe property

protected bool _primaryKey
return bool

_relationshipRef protected_oe property

protected Reference _relationshipRef
return Reference

_validationExpression protected_oe property

protected string _validationExpression
return string