HyperActive
NameProvider Class
NamespacesHyperActive.CoreNameProvider
Used by ActiveRecordGenerators when naming class members.
Declaration Syntax
C#Visual BasicVisual C++
public class NameProvider
Public Class NameProvider
public ref class NameProvider
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
NameProvider()()()
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Escape(String)
Used to return an escaped value of an expression if it happens to be a sql keyword

Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetArgumentName(ColumnSchema)
Returns a name formatted in camelcase for use as an argument. For example, changes FirstName to firstName.

GetArgumentName(String)
Returns a name formatted in camelcase for use as an argument. For example, changes FirstName to firstName.

GetClassName(String)
Gets a value to be used as the name of a class. The default implementation passes the results of GetTableName(expression) to Inflector.Pascalize(string).

GetClassName(TableSchema)
Gets a value to be used as the name of a class. Override GetClassName(string) to customize the behavior.

GetFieldName(String)
Gets a field name derived from the expression. The default implementation will return underscore plus the camelized version of expression.

GetFieldName(ColumnSchema)
Gets a field name derived from the column name. Override GetFieldName(string) to customize.

GetFieldName(ForeignKeyColumnSchema)
Gets a field name derived from the foreign key column name. This implemenations removes the _id from the name of a foreign key column and returns underscore and the camelized version of the foreignkey name.

GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetListFieldName(ForeignKeyColumnSchema)
Gets a field name derived from a foreign key reference.

GetListPropertyName(ForeignKeyColumnSchema)
Gets a property name derived from a foreign key reference. The default implementation returns the pluralized, pascalized version of the foreign key table name.

GetPropertyName(String)
Gets a property name derived from the expression. The default implementation passes expression to Inflector.Pascalize. If the remaining value is 2 characters in length, the result will be both characters capitalized.

GetPropertyName(ColumnSchema)
Gets a property name derived from a column. Override GetPropertyName(string) to customize.

GetPropertyName(ForeignKeyColumnSchema)
Gets a foreign key property name. The default implementation removes _id from the end of the foreignkey name and returns the result of passing that value to GetPropertyName.

GetTableName(TableSchema)
The default implementation will trim every prefix in SkipTablePrefixes from the beginning of a table. Override GetTableName(string) to customize.

GetTableName(String)
The default implementation will trim every prefix in SkipTablePrefixes from the beginning of a table.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
SkipTablePrefixes
Gets or set the list of table prefixes to skip when rendering names that use table name.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
NameProvider

Assembly: HyperActive (Module: HyperActive) Version: 1.3.1.9 (1.3.1.9)