C# Class MoM.Templates.CommonMembershipCode

Summary description for Class1
Inheritance: MoM.Templates.CommonSqlCode
Show file Open project: netTiers/netTiers

Private Properties

Property Type Description
InitAttrTypes void
IsValidLValue bool
IsValidRValue bool

Public Methods

Method Description
CommonMembershipCode ( ) : CodeSmith.Engine
GetBoolExp ( DbType type, bool expected ) : string
GetBoolExp ( DbType type, string subj ) : string
GetCSType ( DataObjectBase field ) : string

Convert database types to C# types

GetEntityAlias ( string providerType ) : string
GetMappedColumn ( string propertyName ) : string

This function gets the name of the property in the user entity that corresponds to the selected MembershipUser property name.

GetPKType ( string providerType ) : string
GetPascalCaseName ( string name ) : string

Get the Pascal cased version of a name.

GetPropertyName ( string name ) : string

Transform a name into a public class property name.

IsCSReferenceDataType ( DataObjectBase column ) : bool

Returns true if the column is represented as a reference data type rather than a value type. In other words, the C# code can set a column of this data type to 'null'

Protected Methods

Method Description
GetCast ( DbType type ) : string

Private Methods

Method Description
InitAttrTypes ( ) : void
IsValidLValue ( string providerType, string lvalue ) : bool
IsValidRValue ( string providerType, string rvalue ) : bool

Method Details

CommonMembershipCode() public method

public CommonMembershipCode ( ) : CodeSmith.Engine
return CodeSmith.Engine

GetBoolExp() public method

public GetBoolExp ( DbType type, bool expected ) : string
type DbType
expected bool
return string

GetBoolExp() public method

public GetBoolExp ( DbType type, string subj ) : string
type DbType
subj string
return string

GetCSType() public method

Convert database types to C# types
public GetCSType ( DataObjectBase field ) : string
field DataObjectBase Column or parameter
return string

GetCast() protected method

protected GetCast ( DbType type ) : string
type DbType
return string

GetEntityAlias() public method

public GetEntityAlias ( string providerType ) : string
providerType string
return string

GetMappedColumn() public method

This function gets the name of the property in the user entity that corresponds to the selected MembershipUser property name.
public GetMappedColumn ( string propertyName ) : string
propertyName string
return string

GetPKType() public method

public GetPKType ( string providerType ) : string
providerType string
return string

GetPascalCaseName() public method

Get the Pascal cased version of a name.
public GetPascalCaseName ( string name ) : string
name string Name to be changed
return string

GetPropertyName() public method

Transform a name into a public class property name.
public GetPropertyName ( string name ) : string
name string
return string

IsCSReferenceDataType() public method

Returns true if the column is represented as a reference data type rather than a value type. In other words, the C# code can set a column of this data type to 'null'
public IsCSReferenceDataType ( DataObjectBase column ) : bool
column DataObjectBase
return bool