Click or drag to resize

Database Class

Data model for database settings
Inheritance Hierarchy

Namespace:  SIC.Setting
Assembly:  SIC (in SIC.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public class Database : SettingXML

The Database type exposes the following members.

Constructors
  NameDescription
Public methodDatabase
Setting database without parameter
Public methodDatabase(String, String, String, Boolean, String, String)
Note: parameter password must encrypt. If raw password use method SetPassword.
Top
Properties
  NameDescription
Public propertyCode exampleConnectionString
Gives a connection string for database
Public propertyDatabaseName
is ConnectionString property Initial Catalog
Public propertyIntegratedSecurity
in ConnectionString property Integrated Security true or false
Public propertyItem
Index handling example this[FieldName]
(Inherited from SettingXML.)
Public propertyCode exampleName
Setting name must be unique. Default: Standard or GUID
(Inherited from SettingXML.)
Public propertyPassword
Password is encrypted
Public propertyServer
is ConnectionString property Data Source
Public propertyUserName
is ConnectionString property User Id
Top
Methods
  NameDescription
Public methodCheckLoggingOn
Check logging on by UserName and Password.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetPassword
Set a encrypted Password property
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Remarks
Using a XML data provider write "XML" to property Server
See Also