HyperActive
ActiveRecordGenerator Class
NamespacesHyperActive.Core.GeneratorsActiveRecordGenerator
Base class that all ActiveRecordGenerators must inherit.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class ActiveRecordGenerator
Public MustInherit Class ActiveRecordGenerator
public ref class ActiveRecordGenerator abstract
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ActiveRecordGenerator()()()
AbstractBaseName
Gets or sets the name of the abstract base. This is used to distinguish multiple database configurations. This is NOT the base type, the base type is going to be some flavor of ActiveRecordBase.

AddClassAttributes(ClassDeclaration, TableSchema)
Adds an attribute to a ClassDeclaration.

AddMethods(ClassDeclaration, TableSchema)
When overriden in a child class, adds methods to the class declaration.

BaseTypeName
Gets or sets the name of the type that all generated ActiveRecord classes will inherit. It's assumed that the type is generic.

CreateClass(NamespaceDeclaration, TableSchema)
Creates a ClassDeclaration.

CreateColumnList(TableSchema, ClassDeclaration)
Creates the column list.

CreateConstructors(ClassDeclaration, TableSchema)
When overridden in a child class, adds constructors to the class declaration.

CreateForeignKey(ClassDeclaration, ForeignKeyColumnSchema)
Creates a property that is a foreign key within the current table that points to a primary key in another table. These typically have BelongsTo attributes.

CreateForeignKeyReference(ClassDeclaration, ForeignKeyColumnSchema)
Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.

CreateNonKeyProperty(ClassDeclaration, ColumnSchema)
Creates a plain ol' property representing any column that is not a foreign key or primary key.

CreatePrimaryKeyProperty(ClassDeclaration, TableSchema)
Adds a prrimary key property to the ClassDeclaration.

DomProvider
Gets or sets the codedom provider to use when the code is generated. The default is the CSharpCodeProvider.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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.)
Generate(TextWriter, String, TableSchema)
Generates the code for an ActiveRecord class.

Generate(String, String, TableSchema)
Generates the code for an ActiveRecord class.

GenerateAbstractType(String, String, String)
Generates the type of the abstract.

GenerateAbstractType(TextWriter, String, String)
Generates the type of the abstract.

GenerateColumnList
Gets or sets a value indicating whether the generator will generate a Columns property that exposes a struct with all of the field names. This is true by default.

GenerateInterface(TextWriter, String, String)
Generates the interface.

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.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MarkerInterfaceName
Gets or sets the name of the marker interface.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NameProvider
Gets or sets the NameProvider to use when naming members.

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

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