Public Instance Constructors

NUnit Constructor

Public Instance Properties

Author (inherited from General) The author, is used when generating the header.
ClassName (inherited from GeneralDataClass) The name of the class.
ClassNamespace (inherited from GeneralDataClass) The namespace.
Comment (inherited from General) Comment is used when generating the header.
Company (inherited from General) Company.
ConnectionString (inherited from General) Connectionstring
CurrentOperation (inherited from General) Current operation such as: Insert, Update, Delete, SelAll, SelUni
DoGenerateHeader (inherited from GeneralDataClass) Should the function include a header
DoReturnIdentityValue (inherited from General)
EntityObject (inherited from General) The name of the table.
FunctionName (inherited from GeneralDataClass) The name of the function. Removes any prefix on the table and adds the prefix of the current operation.
NUnitClassName (inherited from GeneralDataClass) The name of the NUnit class. Removes any prefix on the table and adds the suffix 'Test'.
ParamExpression (inherited from GeneralDataClass) Set the name of the storedprocedure or the sql script.
StoredProcedureName (inherited from General) The name of the stored procedure. Removes any prefix on the table and adds the prefix 'p'.

Public Instance Methods

Equals (inherited from Object)Select the method name to go to the Microsoft documentation.
GenerateClassBottom (inherited from GeneralDataClass) Generates the bottom of class
GenerateClassTop Generates the top of the class including Class topusingnamespace definition
GenerateDeleteTestCode Generates NUnit definition for testing the Delete function.
GenerateFunctionHeader
GenerateInsertTestCode Generates NUnit definition for testing the Insert function.
GenerateModifierClassTop (inherited from GeneralDataClass) Generates the modifier class top. Modifier includes ModifierInsertUpdateDelete
GenerateNamespaceBottom (inherited from GeneralDataClass) Generates the bottom of the namespace.
GenerateReaderClassTop (inherited from GeneralDataClass) Generates the reader class top. Reader includes ReaderSelAllSelUni
GenerateSelAllTestCode Generates NUnit definition for testing the SelAll function.
GenerateSelUniTestCode Generates NUnit definition for testing the SelUni function.
GenerateTestBody Generates the NUnit's supported functions. NUnit functionsSuiteSetUpTearDown
GenerateTestModifierClassTop Generates the modifier class top. Modifier includes ModifierInsertUpdateDelete
GenerateTestReaderClassTop Generates the reader class top. Reader includes ReaderSelAllSelUni
GenerateUpdateTestCode Generates NUnit definition for testing the Update function.
GetHashCode (inherited from Object)Select the method name to go to the Microsoft documentation.
GetType (inherited from Object)Select the method name to go to the Microsoft documentation.
ToString (inherited from Object)Select the method name to go to the Microsoft documentation.

Protected Instance Properties

connection (inherited from General) SqlConnection
TableInformation (inherited from General) Contains the information about the column names, primary keys and datatypes.

Protected Instance Methods

Finalize (inherited from Object)Select the method name to go to the Microsoft documentation.
GenerateHeader (inherited from GeneralDataClass) Generates the header of the datafunction. HeaderSummaryauthorcreated Should be used with conjunction of addParameterToHeader
GetTableInformation (inherited from General) Fills three tables with info about the columns, primary keys, columns datatypes for a specified table. Tables, index0 - colums, using sp_Columns1 - datatypes, using sp_datatype_info2 - Primary key(s), using sp_keys
MemberwiseClone (inherited from Object)Select the method name to go to the Microsoft documentation.
RemoveIdentityString (inherited from General) Removes the suffix 'identity' from the parameter.
RemoveTablePrefix (inherited from General) Removes table prefix 't'.
UpdateTableInformation (inherited from General) Check if system should load information about a new table.

See Also

NUnit Class | Magnusson.Data.SqlAutomation Namespace