Public Instance Constructors

DataClass Constructor The 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

DeleteFunction Generates the delete function
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
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
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.
InsertFunction Generates the insert functiom
SelAllFunction Generates the delete function
SelUniFunction Generates the SelUni function
ToString (inherited from Object)Select the method name to go to the Microsoft documentation.
UpdateFunction Generates the update function

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

buildSqlDbType Converts datatype to correct definition.
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
GetColumnName Get the name of columns and their datattypes. [datatype,columnname]
GetIdentityColumn
GetPrimaryKeysColumn Get the name of primary keys and their datattypes. [datatype,columnname]
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

DataClass Class | Magnusson.Data.SqlAutomation Namespace