HyperActive
Represents a field in a table.
Implement this interface to represent a column in a database.
Gets the length of the column
Gets a value indicating whether a column can contain nulls. It's looking for the 'is_nullable'
key in the props.
Gets a value indicating whether this column is a primary key. It depends on a boolean value
in the props with the key 'is_primary_key'.
Gets a value indicating whether this column is a foreign key. It depends on a boolean value
in the props with the key 'is_foreign_key'.
Gets the .NET datatype for this column.
gets the name of the column.
Gets the TableSchema containing this column.
Instance of the IDbProvider used to get information from the database.
A Dictionary<string,object>
containing extra properties for this column.
Initializes a new instance of the ColumnSchema class.
Initializes a new instance of the ColumnSchema
The DbProvider used for interrogating the datastore.
The TableSchema that contains the column.
SqlDbType.
.NET DataType
Name of the column.
Any extended properties.
Length of the column if supported.
Gets the length of the column
Gets a value indicating whether a column can contain nulls. It's looking for the 'is_nullable'
key in the props.
Gets a value indicating whether this column is an ident column. It depends on a boolean value
in the props with the key 'is_identity'.
Gets a value indicating whether this column is a primary key. It depends on a boolean value
in the props with the key 'is_primary_key'.
Gets a value indicating whether this column is a foreign key. It depends on a boolean value
in the props with the key 'is_foreign_key'.
Gets the sql datatype for this column.
Gets the .NET datatype for this column.
gets the name of the column.
Gets the TableSchema containing this column.
List of ColumnSchemas.
Initializes a new instance of the ColumnSchemaList
Initializes a new instance of the ColumnSchemaList
Gets a ColumnSchema by name from the list of ColumnSchemas.
Represents a view of a database.
Initializes a new instance of a DatabaseSchema.
Retrieves all of the tables whose names begin with the specified prefix.
Prefix of the tables to find.
List of tables whose names begin with the specified prefix.
Gets the list of tables in the database.
Helper class that wraps some common ADO.NET activities. Implements the IDbHelper interface.
Utility interface for executing SqlServer specific methods
Gets a SqlConnection.
Executes the commandText and returns a SqlDataReader
Executes the SqlCommand and returns a ready to go instance of a SqlDataReader.
Gets the ConnectionString that implementors of this interface use for connecting to the database.
Initializes a new instance of the DbHelper class.
Gets an instance of a SqlConnection
Executes the commandText and returns a SqlDataReader.
Executes the SqlCommand and returns a ready to go SqlDataReader.
Gets the connection string.
The connection string.
Utility class used for grabbing an enum value from a string
The type of enum.
Extracts an enum value based on a string value.
Value to parse.
Represents a foreign key column.
Implement this interface to represent a foreign key.
Gets the primary key table that this foreign key originates.
The primary key table this foreign key originates.
Initializes a new instance of the ForeignKeyColumnSchema class.
The DbProvider used for interrogating the datastore.
The TableSchema that contains the column.
SqlDbType.
.NET DataType
Name of the column.
Any extended properties.
Length of the column if supported.
Gets a reference to the PrimaryKeyTable for this foreign key.
List of ForeignKeys.
Common interface for extracting information from a database.
Gets a list of tables in a database.
A list of tables from a database.
Gets a TableSchema instance from the database by name.
Name of the table.
An instance of a TableSchema representing the database table.
Gets a list of columns for a table.
The TableSchema instance to retrieve columns.
A list of columns in the TableSchema instance.
Gets a list of foreign keys contained in a table.
A TableSchema instance representing a database table.
A list of foreign key columns contained within a database table.
Gets the tables that reference a primary key.
A primary key.
A list of foreign key columns that reference the primary key.
Gets the primary key for a table.
A TableSchema instance that represents a database table.
The primary key column of a table.
Gets a list of tables whose names begin with the specified prefix.
The prefix of the tables to find.
List of tables whose names begin with the specified prefix.
Gets the connectionstring the implementing instance is using.
Gets or sets the ID of an instance of a class implementing IDbProvider.
Initial states of a database connection.
Connection should be opened.
Connection should be closed.
Represents the primary key column of a table.
Initializes a new instance of a PrimaryKeyColumnSchema.
The DbProvider used for interrogating the datastore.
The TableSchema that contains the column.
SqlDbType.
.NET DataType
Name of the column.
Any extended properties.
Length of the column if supported.
Represents a list of tables where this primary key is referenced as a foreign key.
Helper methods for sql server ce
Initializes a new instance of the class.
The connection string.
Gets a SqlConnection.
Executes the commandText and returns a SqlDataReader
Executes the SqlCommand and returns a ready to go instance of a SqlDataReader.
Gets the ConnectionString that implementors of this interface use for connecting to the database.
SqlServer implementation of the IDbProvider interface.
Initializes a new instance of the SqlServerProvider
Gets all of the columns for a table.
Returns a new instance of a tableschema.
Gets all of the tables in a database.
Gets a list of tables whose names begin with the specified prefix.
The prefix of the tables to find.
List of tables whose names begin with the specified prefix.
Gets the primary key for a table.
Gets all of the objects representing tables that have references to a primary key.
Gets all of the foreign keys within a table.
Gets or sets the ID of this instance of the SqlServerProvider class.
Gets the connectionstring the implementing instance is using.
SqlServer implementation of the IDbProvider interface.
Initializes a new instance of the SqlServerProvider
Gets all of the columns for a table.
Returns a new instance of a tableschema.
Gets all of the tables in a database.
Gets a list of tables whose names begin with the specified prefix.
The prefix of the tables to find.
List of tables whose names begin with the specified prefix.
Gets the primary key for a table.
Gets all of the objects representing tables that have references to a primary key.
Gets all of the foreign keys within a table.
Gets or sets the ID of this instance of the SqlServerProvider class.
Gets the connectionstring the implementing instance is using.
Represents a database table.
Initializes a new instance of the TableSchema class.
Initializes a new instance of the TableSchema class.
Name of the table.
Instance of the dbprovider used to obtain information about the table.
Gets the IDbProvider instance.
Gets the name of the table.
Gets all of the columns for the table.
Gets the primary key for the table.
Gets all of the foreign keys contained in this table.
Gets all colunms that are not foreign keys and not primary keys.
Gets all columns except for the primary key.
List of TableSchemas.
Gets a TableSchema from the list of tables in this instance by name.
Name of the table to find.
Wrapper around the CodeAttributeDeclaration
Initializes a new instance of the AttributeDeclaration class.
Initializes a new instance of the AttributeDeclaration class.
The name of the attrbute type.
/// Attrubte type parameters.
Initializes a new instance of the AttributeDeclaration class.
The type of attribute.
Responsible for converting the current instance of an AttributeDeclaration
to it's CodeDom equivalent, CodeAttrbuteDeclaration.
Adds a quoted agument to the attribute declaration. For example, if the attribute name was MyAttribute,
calling AddQuotedArgument("Description of something") would result in
an attribute that looks like [MyAttribute("Description of something")].
The attribute argument that will be generated in quotes.
The instance of the AttributeDeclaration with the added argument.
Adds a quoted agument to the attribute declaration. For example, if the attribute name was MyAttribute,
calling AddQuotedArgument(ColumnName, "my_column") would result in
an attribute that looks like [MyAttribute(ColumnName="my_column")].
Name of the attribute parameter.
Value that will be generated in quotes.
The instance of the AttributeDeclaration with the added argument.
Adds an argument to the attribute declaration "as-is".
If the attribute type was MyAttribute, calling AddArgument("Name=Value") would result in an
attribute that looks like [MyAttribute(Name=Value)].
The attribute argument.
The instance of the AttributeDeclaration with the added argument.
Gets the CodeDomTypeReference for this AttributeDeclaration.
Gets the list of arguments to pass to the attribute.
Wraps the creation of an interface.
Indicates that a Type can convert itself to anything in the CodeDom.
The CodeObject that will be created by calling ToCodeDom.
When called on implementing class, a CodeObject representing the class is returned.
Initializes a new instance of the InterfaceDeclaration class.
Toes the code type reference.
When called on implementing class, a CodeObject representing the class is returned.
Gets or sets the name.
The name.
Wrapper for the CodeTypeDeclaration.
Adds a constrcutor with the specified args. No args indicates that the constructor
will be the default constructor.
The constructor that was added.
Adds a constrcutor with the specified args. No args indicates that the constructor
will be the default constructor.
The constructor that was added.
Adds a constructor to the class declaration.
The type of the argument.
The name of the argument.
The field name the to which argument maps.
The constructor that was added to the class declaration.
Adds a constructor to the class declaration.
The type of the argument.
The name of the argument.
The field name the to which argument maps.
The comment for the argument.
The constructor that was added to the class declaration.
Adds a property to the class declaration. The field will be added from the property to the class declaration.
The PropertyDeclaration to add to the class.
The property that was passed to the method.
Adds a property to the class declaration.
Name of the property to add.
Name of the field the property encapsulates.
The type of property.
The property that was added to the current class declarartion.
Adds a property to the class declaration.
Name of the property to add.
Name of the field the property encapsulates.
Name of the property type.
Any type parameters the type needs.
The property that was added to the current class declaration.
Adds a property to the class declaration.
Name of the property to add.
Name of the field the property encapsulates.
The property type.
The property declaration that was added.
Adds a property to the class declaration.
Name of the property to add.
Name of the field the property encapsulates.
The property type.
Indicates whether the database column is nullable or not.
The property that was added to the current class declaration.
Adds a method to a class declaration.
Name of the method.
The method that was added to the current class declaration.
Adds a method to a class declaration.
Name of the method.
The type the method returns.
The method that was added to the current class declaration.
Adds a method to a class declaration.
Name of the method.
The type the method returns.
The method that was added to the current class declaration.
Adds an attribute to the class.
Attribute to add to the class.
The attribute that was added to the class.
Adds an attribute to the class.
Type of attribute.
Attribute type parameters.
The attribute that was added to the class.
Adds an attribute to the class.
The type of attribute.
The attribute that was added to the class.
Sets the type that the generated class will be derived from.
The current ClassDeclaration with the addition of the base type.
Sets the type that the generated class will be derived from.
Name of the base type.
Type parameters for the base type if it is generic.
The current ClassDeclaration with the addition of the base type.
Marks this instance as being an abstract class.
This instance marked as being abstract.
Initializes a new instance of the ClassDeclaration class.
The namespace declaration containing this class.
The name of the class.
Any parameters the type will need to be defined.
Initializes a new instance of the ClassDeclaration class.
Name of the type that will be generated.
Any parameters the type will need to be defined.
Returns a CodeTypeReference pointing to this class.
CodeTypeReference referencing this class.
Converts this ClassDeclaration to a CodeTypeDeclaration.
The CodeTypeDeclaration representation of this class.
Implementses the specified interface declaration.
The interface declaration.
Adds the interface.
The interface declaration.
Gets the properties defined in this ClassDeclaration instance.
Gets the list of constructors defined for this class declaration.
Gets the NamespaceDeclaration this class belongs.
Gets or sets a value indicating whether the class is a partial class.
Gets the name of the class.
Gets the type parameters.
Gets the type of this class.
Gets the full name of this class.
Wraps the operations for generating code.
Initializes a new instance of the CodeBuilder class using the CSharpCodeProvider for code generation.
Initializes a new instance of the CodeBuilder class.
The CodeDomProvider to use when generating code.
Creates a CodeCompileUnit from a NamespaceDeclaration.
Generates code from a codeTypeDeclaration.
The textwriter the code is written to.
The namespace that will contain the class.
The CodeDom definition to generate.
Generates code from a NamespaceDeclaration instance.
Generates code from a type.
Generates code from a CodeStatement.
Gets the CodeDomProvider that will be used when generating code. The default is the CSharpCodeProvider.
Wraps a CodeTypeReference.
Returns a string representation of the type that this instance of CodeDomTypeReference represents.
Indicates that the type is nullable.
Determins if this CodeDomTypeReference matches a typeName.
The typeName to match.
True if it matches, false otherwise.
Initializes a new instance of the CodeDomTypeReference class.
The type this class represents.
Initializes a new instance of the CodeDomTypeReference class.
The name of the type this class represents.
One or more type parameters for a generic type.
Determines if a type parameter name exists in this CodeDomTypeReference.
The type parameter to find.
True if the type parameter name exists, otherwise false.
Adds a type parameter to this instance of a CodeDomTypeReference.
The type parameters to add.
This instance of a CodeDomTypeReference with the added type parameters.
Converts this CodeDomTypeReference to a CodeTypeReference.
A CodeTypeReference representing this instance of a CodeDomTypeReference.
Represents a single argument in a ConstrctorDeclaration.
Initializes a new instance of the ConstructorArg class.
The type of arg.
The name of the arg.
The name of the field tha arg to which the arg is mapped.
Initializes a new instance of the ConstructorArg class. This results in a default constructor.
Initializes a new instance of the ConstructorArg class.
The type of arg.
The name of the arg.
The name of the field tha arg to which the arg is mapped.
The comment that will appear in a param comment for the constructor.
Transforms this wrapper to it's CodeDom format.
A CodeParameterDeclarationExpression representing this instance.
Gets the comments for this argument.
Gets the type of the argument.
Gets the name of the argument.
Gets the name of the field the argument is mapped.
Wrapper for the CodeConstructor
Initializes a new instance of the ConstructorDeclaration class.
The name of the type containing this constructor. Passing in zero args creates a default constructor.
The constructor arguments. Zero args results in a default constructor.
Initializes a new instance of the ConstructorDeclaration class.
The name of the type containing this constructor. Passing in zero args creates a default constructor.
Comment for the constructor.
The constructor arguments. Zero args results in a default constructor.
Initializes a new instance of the ConstructorDeclaration class.
The name of the type containing this constructor.
The type of arg.
The name of the arg.
The name of the field tha arg to which the arg is mapped.
Adds an argument to the constructor.
The type of arg.
The name of the arg.
The name of the field tha arg to which the arg is mapped.
Adds an argument to the constructor.
The type of arg.
The name of the arg.
The name of the field tha arg to which the arg is mapped.
The comment for the doc summary for this arg.
Creates the CodeDom representation of this ConstructorDeclaration.
CodeConstructor representing this instance of ConstructorDeclaration.
Gets the comments for the constructor.
Gets the list of arguments for this constructor.
Wraps the necessary functionality for compiling and loading code for testing.
Initializes a new instance of the NamespaceDeclaration class.
The namespace being compiled.
Signals that the dom tester is done and it's AppDomain can be unloaded.
Calls Complete() to unload the AppDomain hosting the compiled code.
Compiles a type.
Finds a typeName in the compiled type.
The name of the type to find.
True if the typeName is found in the compiled code, otherwise false.
Returns an object that implements the ITypeTester interface for the typeName if it's found in the compiled code.
The name of the type the ITypeTester interface will test.
An object that implements the ITypeTester interface that will test typeName.
Determins if a property exists within a type.
Name of the type containing the property.
Name of the property to find int the type.
True if the property is found on the compiled type, otherwise false.
Gets a value indicating whether a namespace was successfully compiled.
Wraps a CodeMemberField.
Initializes a new instance of a FieldDeclaration class.
Name of the field.
Type of the field.
Initializes a new instance of the FieldDeclaration class.
Name of the field.
Name of the type for the field.
Type parameters for the type.
Initializes a new instance of the FieldDeclaration class.
Name of the field.
Type of the field.
Adds an initializer for the field.
Initializer for the field.
This instance of the FieldDeclaration with the initializer added.
Converts this instance of FieldDeclaration to a CodeMemberField.
This instance represented as a CodeMemberField.
Gets or sets a value indicating whether the field is initialized.
Gets the name of the fied.
Interface that describes methods that can be used to test Types.
Method implementations would verify that a type inherits the baseTypeName and contains any typeParameters specified.
Determines whether the specified type name has attribute.
Name of the type.
true if the specified type name has attribute; otherwise, false.
Types of LineDeclarations.
A LineDeclaration will be generating a line that creates a new variable declaration.
The LineDeclaration will be generating some form of variable or property assignment.
The LineDeclaration will be generating code that calls a method on a local variable.
Represents a line of code. Ultimately this will becomes CodeStatement.
Creates a new instance of a LineDeclaration.
Name of the variable used within this statement.
The type of the line being created, for example, a variable declaration or an assignment.
Initializes a new instance of the LineDeclaration class.
Name of the variable used in the line.
Name of the method to call on the variable.
Sets the variable used in this LineDeclaration to a new instance of the CodeDomTypeReference passed to the method.
The variable used in the current instance of the LineDeclaration will be set to a new instance of this type.
Specifies the property off of the variable of this LineDeclaration to be used in the generated statement.
Name of the property off of the variable within this LineDeclaration.
Sets the value to use when in an assignment LineDeclaration.
Property value used in assignments.
The current instance of the LineDeclaration with the property value set.
Sets the type for a variable being declared.
Responsible for transforming this LineDeclaration into it's CodeDom equivalent.
CodeStatement representing this instance of the LineDeclaration.
Toes the code expression.
Get's the name of the variable used in this LineDeclaration.
Wraps a CodeMemberMethod.
Initializes a new instance of the MethodDeclaration class.
Initializes a new instance of the MethodDeclaration class.
Adds an attribute to a method.
Name of the type of attribute.
Parameters used in defining the attribute.
The AttributeDeclaration insance that was added to the method.
Adds an attribute to the method.
The type of the attribute to add.
The AttributeDeclaration insance that was added to the method.
Adds an attribute to the method.
The type reference to the attribute to add.
The AttributeDeclaration insance that was added to the method.
Adds a variable declaration line to the method.
The name of the variable being declared.
The LineDeclaration that was created.
Adds an assignment statement line to the method.
The name of the variable being assigned a value.
The LineDeclaration that was created.
Indicates that the method will be virtual.
This method with the MemberAttributes.Final attribute removed, indicating that it will be defined as virtual.
Indicates that the method will be public.
This method with the MemberAttributes.Public attribute added, indicating the the method will be defined as public.
Responsible for creating the CodeMemberMethod based on the values contained within the MethodDeclaration instance.
A CodeMemberMethod represented by this MethodDeclaration.
Adds a LineDeclaration to this MethodDeclaration that calls a method on a field.
The field to which the method is called.
The method to call.
The LineDeclaration that was added to this instance of the MethodDeclaration.
Returns the specified method to call.
The method to call.
Adds a parameter declaration to the method signature.
Type of the parameter.
Name of the parameter.
Gets the MethodAttributes that will be applied to the method. MemberAttributes.Final is specified by default.
Wrapper class around the CodeNamespace.
Adds namespaces to be used as using/imports statements in the generated code.
Initializes a new instance of a NamespaceDeclaration.
The name of the namespace.
Adds a class declaration to the namespace.
Name of the class.
Indicates whether the class is partial or not.
The class declaration instance that was added to the namespace.
Adds a class declaration to the namespace.
Name of the class.
List of type parameters if the class is generic.
The class declaration instance that was added the namespace.
Adds an object, presumably an ActiveRecord class definition, to the namespace.
The class declaration.
Responsible for generating the NamespaceDeclaration to it's CodeDom equivalent, CodeNamespace.
CodeNamespace representing this NamespaceDeclaration.
Gets the namespace name.
An abstraction over a CodeMemberProperty.
Initializes a new instance of a PropertyDeclaration.
The name of the property.
The field the property will encapsulate.
A CodeDomTypeReference the PropertyDeclaration uses to determine it's type.
Initializes a new instance of a PropertyDeclaration.
The name of the property.
The field the property will encapsulate.
The name of the type for the property.
/// A list of types used for constructing Generic type references.
Initializes a new instance of a PropertyDeclaration.
The name of the property.
The field the property will encapsulate.
The System.Type of the property.
Adds an attribute to the property.
A reference to the type of attribute to add.
The AttributeDeclaration that was added to the property. If the attribute has already been added it returns the existing attribute.
Adds an attribute to the property.
Name of the type to add.
Any type parameters required by the type.
The AttributeDeclaration that was added to the property. If the attribute has already been added it returns the existing attribute.
Adds an attribute to the property.
The type of attribute to add.
The AttributeDeclaration that was added to the property. If the attribute has already been added it returns the existing attribute.
Adds a type parameter to the type reference.
The type parameter to add to the type of the property.
This instance of the PropertyDeclaration after the type parameter has been added.
Sets the Initialize property on the encapsulated field to true.
Responsible for translating all of the Dominator interfaces and classes into plain ol' CodeDom when the actual dom needs to be generated.
An instance of a CodeMemberProperty created from the properties of this PropertyDeclaration.
Adds a new comment line to the property.
A composite format string.
An object array used when formatting the comment message.
The property instance with the added comment.
Gets the CodeDomTypeReference for the property.
Gets the name of the property.
Gets the FieldDeclaration associated with the property.
Gets a list of attributes that will be used to adorn the property.
List of PropertyDeclarations.
Gets a PropertyDeclaration.
Name of the PropertyDeclaration to get.
The property declaration matching propertyName.
An implementation of ITypeTester.
Initializes a new instance of the TypeTesterImpl class.
Verifies that the contained type inherits the base type and any typeParameters contained in the base type.
Determines whether the specified attribute type name has attribute.
Name of the attribute type.
true if the specified attribute type name has attribute; otherwise, false.
Arguments class
Initializes a new instance of the Arguments class.
Command line args
Gets the Parameters parsed from the command line.
Gets the with the specified param.
Represents information about a contstructor parameter.
Name of the the constructor parameter.
Type of the constuctor parameter.
Value of the constructor parameter.
Initializes a new instance of the struct.
The name.
The type.
The value.
Represents a component container.
Registers the specified service.
The service.
The service impl.
Registers the specified service.
The service.
The service impl.
The ctor values.
Registers the specified service.
The service.
The service impl.
The ctor params.
Registers the specified components.
The components.
Gets the specified component.
Name of the component.
Gets a component instance.
Type of the component to retrieve, this is always the service type.
Details about the component.
The service contract.
The service implementation.
Constructor parameters for the service implementation.
Initializes a new instance of the struct.
The service.
The service impl.
The ctor params.
Responsible for parsing the contents of a hyperactive config file.
Initializes a new instance of the class.
The xmlcontent.
Gets the components.
Base class that all ActiveRecordGenerators must inherit.
Adds a prrimary key property to the ClassDeclaration.
The ClassDeclaration instance the property is added to.
The database table the ClassDeclaration represents.
Adds an attribute to a ClassDeclaration.
The ClassDeclaration instance the property is added to.
The database table the ClassDeclaration represents.
Creates a ClassDeclaration.
The NamespaceDeclaration instance the class is added to.
The database table the ClassDeclaration represents.
A reference to the ClassDeclaration instance that was created.
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.
The class to which the property is added.
The foreign key the property represents.
The foreign key property that was added.
Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.
The class to which the property is added.
The foreign key in the table that references the primary key in this class.
The property that was added.
Creates a plain ol' property representing any column that is not a foreign key or primary key.
The class to which the property is added.
The column the property represents.
When overridden in a child class, adds constructors to the class declaration.
The class declaration for which we're building constructors.
The table schema the class declaration represents.
The updated class declaration or null if it's not overridden.
When overriden in a child class, adds methods to the class declaration.
The class declaration to which the methods are added.
The table schema the class declaration represents.
The updated class declaration or null if it's not overriden.
Creates a single class within a namespace.
The namespace to which the class is added.
The table the class represents.
Creates a class in the specified namespace that represents the table.
The namespace name that will contain the class.
The table the class represents.
The class that was completed.
Creates a NamespaceDeclaration containing on ActiveRecord class for each table that contains a primary key.
The name of the namespace.
The databaseschema to generate.
The NamespaceDeclaration containing the ActiveRecord classes.
Generates the code for an ActiveRecord class.
The TextWriter to which the code will be written.
The namespace the class will be contained.
The table the ActiveRecord class represents.
Generates the code for an ActiveRecord class.
The path to write the code file.
The namespace the class will be contained.
The table the ActiveRecord class represents.
Generates a connection-specific type that maps to an active record config section.
The path to the file that will be generated.
The namespace the class will be contained.
The name of the type.
Generates the type of the abstract.
The writer.
Name of the namespace.
The basetypename.
Generates the interface.
The writer.
Name of the namespace.
Name of the interface.
Gets or sets the name of the marker interface.
The name of the marker interface.
Gets or sets the codedom provider to use when the code is generated. The default is the CSharpCodeProvider.
Gets or sets the name of the type that all generated ActiveRecord classes will inherit. It's assumed that the type is generic.
Gets or sets the NameProvider to use when naming members.
Generates an NUnit TestFixture that tests an ActiveRecord class.
Initializes a new instance ofthe ActiveRecordTestGenerator class.
Initializes a new instance of the ActiveRecordTestGenerator class.
The name provider to use when generating code.
Initializes a new instance of the ActiveRecordTestGenerator class.
The name provider to use when generating code.
The value provider to use when generating test values.
Generates the test class for a table.
The path where the code will be written.
The namespace the class will belong.
The table to generate test code for.
Generates the test class for a table.
The writer to which the code is written.
The namespace containing the test class.
The table being tested.
Gets or sets the NameProvider to use when naming code elements.
Gets or sets the ValueProvider used when generating test values.
Generates ActiveRecordClasses without relationships.
Creates a ClassDeclaration.
The NamespaceDeclaration instance the class is added to.
The database table the ClassDeclaration represents.
A reference to the ClassDeclaration instance that was created.
Adds a prrimary key property to the ClassDeclaration.
The ClassDeclaration instance the property is added to.
The database table the ClassDeclaration represents.
Adds an attribute to a ClassDeclaration.
The ClassDeclaration instance the property is added to.
The database table the ClassDeclaration represents.
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.
The class to which the property is added.
The foreign key the property represents.
The foreign key property that was added.
Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.
The class to which the property is added.
The foreign key in the table that references the primary key in this class.
The property that was added.
Creates a plain ol' property representing any column that is not a foreign key or primary key.
The class to which the property is added.
The column the property represents.
Gets or sets the NameProvider to use with this generator.
blah blah blah
Creates a ClassDeclaration.
The NamespaceDeclaration instance the class is added to.
The database table the ClassDeclaration represents.
A reference to the ClassDeclaration instance that was created.
Adds a prrimary key property to the ClassDeclaration.
The ClassDeclaration instance the property is added to.
The database table the ClassDeclaration represents.
Adds an attribute to a ClassDeclaration.
The ClassDeclaration instance the property is added to.
The database table the ClassDeclaration represents.
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.
The class to which the property is added.
The foreign key the property represents.
The foreign key property that was added.
Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.
The class to which the property is added.
The foreign key in the table that references the primary key in this class.
The property that was added.
Creates a plain ol' property representing any column that is not a foreign key or primary key.
The class to which the property is added.
The column the property represents.
Gets or sets the NameProvider to use with this generator.
Implementation of ICodeRunner
Orchestrates the generation of active record classes.
Executes this instance.
Initializes a new instance of the class.
The options.
Executes this instance.
Implementation of IGeneratorOptions
Generator Options
Gets or sets the name of the marker interface.
The name of the marker interface.
Gets or sets the name of the base type.
The name of the base type.
Gets or sets the tables that will not be generated
The skip tables.
Gets or sets the namespace.
The namespace.
Gets or sets the output path.
The output path.
Gets or sets the output writer.
The output writer.
Gets or sets the output.
The output.
Gets or sets the generator.
The generator.
Gets or sets the db provider.
The db provider.
Gets or sets the namer.
The namer.
Gets or sets the name of the base type.
The name of the base type.
Gets or sets the output path.
The output path.
Gets or sets the tables that will not be generated
The skip tables.
Gets or sets the namespace.
The namespace.
Gets or sets the output.
The output.
Gets or sets the output writer.
The output writer.
Gets or sets the generator.
The generator.
Gets or sets the db provider.
The db provider.
Gets or sets the namer.
The namer.
Gets or sets the name of the marker interface.
The name of the marker interface.
LazyActiveRecordGenerator generates some extra attribute args on hasmany attributes that indicate the resulting class will use lazy loading on those properties.
Creates a ClassDeclaration shell.
NamespaceDeclaration the class is added.
Database table that the generated class will interact with.
The ClassDeclaration shell that was created.
Creates a property that maps to a table's primary key.
The ClassDeclaration that represents the database table.
The database table that contains the primary key we're mapping as a property.
Add some class attributes.
The ClassDeclaration instance we're adding an attribute to.
The database table that the ClassDeclaration represents.
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.
The class to which the property is added.
The foreign key the property represents.
The foreign key property that was added.
Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.
The class to which the property is added.
The foreign key in the table that references the primary key in this class.
The property that was added.
Creates a plain ol' property representing any column that is not a foreign key or primary key.
The class to which the property is added.
The column the property represents.
Gets or sets the NameProvider to use with this generator.
Creates a property that has a HasManyAttribute.
The class containing the property.
The foreign key to use.
A prpoerty with a hasmany attribute.
A generic exception that occurs within HyperActive.
Initializes a new instance of the HyperActiveException class.
The message of the exception.
Any format args for the message.
The Inflector transforms words from singular to plural, class names to table names, modularized class
names to ones without, and class names to foreign keys.
Inflector is rails inspired code developed by Andrew Peters.
http://andrewpeters.net/inflectornet/
Static initializer of Inflector.
Pluralizes the specified word.
The word.
Singularizes the specified word.
The word.
Titleizes the specified word.
The word.
Humanizes the specified lowercase and underscored word.
The lowercase and underscored word.
Pascalizes the specified lowercase and underscored word.
The lowercase and underscored word.
Camelizes the specified lowercase and underscored word.
The lowercase and underscored word.
Underscores the specified pascal cased word.
The pascal cased word.
Capitalizes the specified word.
The word.
Uncapitalizes the specified word.
The word.
Ordinalizes the specified number.
The number.
Dasherizes the specified underscored word.
The underscored word.
Used when generating values for a column.
Gets a value that will "fit" into a column.
The colunm to reference when generating values.
A value that will "fit" into the the column.
Used by ActiveRecordGenerators when naming class members.
The default implementation will trim every prefix in SkipTablePrefixes from the beginning of a table. Override
GetTableName(string) to customize.
The table.
Name of the class that will represent this table.
The default implementation will trim every prefix in SkipTablePrefixes from the beginning of a table.
Name of the table to trim.
Name of the table with every prefix in SkipTablePrefixes removed from the beginning of the name.
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).
Expression to evaluate to the name of a class.
A string to use as the name of a class.
Gets a value to be used as the name of a class. Override GetClassName(string) to customize the behavior.
The table to convert to the name of the class.
The name of the class based on the table.
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.
Expression to convert to property name.
The expression as a property name.
Gets a property name derived from a column. Override GetPropertyName(string) to customize.
The column the property from which the name of the property is derived.
The name of the property based on the column.
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.
The foreign key that will supply the database name to format.
The forign key name formatted as a property name.
Gets a property name derived from a foreign key reference. The default implementation returns
the pluralized, pascalized version of the foreign key table name.
The foreign key.
The property name derived from the foreign key.
Gets a field name derived from the expression. The default implementation will return
underscore plus the camelized version of expression.
The expression from which the field name is derived.
The name of the field based on the expression.
Gets a field name derived from the column name. Override GetFieldName(string) to customize.
The column from which field name is derived.
The name of the field derived from the column.
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.
The foreign key from which the field name is derived.
The name of the field derived from the foreign key.
Gets a field name derived from a foreign key reference.
The foreign key being referenced
The field name.
Returns a name formatted in camelcase for use as an argument. For example, changes FirstName to firstName.
The column to format.
The name formatted as an argument.
Returns a name formatted in camelcase for use as an argument. For example, changes FirstName to firstName.
The name to format as an argument.
The name formatted as an argument.
Used to return an escaped value of an expression if it happens to be a sql keyword
The expression to evaluate.
If the expression is a sql key word it's returned prefixed with a backtick(`), otherwise the original expression is returned.
Gets or set the list of table prefixes to skip when rendering names that use table name.
Utility class to work with objects.
Returns first non null result.
Type to return.
List of functions to execute.
First non-null result from the list of functions.
Utility used for working with types.
Creates an instance of a type.
The type to create.
The TypeInferer containing the necessary type information.
Any parameters needed for creating an instance of the type.
An instance of type T.
Utility class for reading types specified as 'FullTypeName, AssemblyName'.
Initializes a new instance of the TypeInferer class.
Comma separated full type name and assembly name to infer.
Gets the name of the type.
Gets the name of the assembly.
Implementation of IValueProvider.
Gets a value that can be assigned to the target column.
The column for which the value is generated.
A value that can be assigned to a property representing the column.