Click or drag to resize

ConnectionString Class

Manage ConnectionString to connect and create databases. Connection string are NameValue using Name1=Value1; Name2=Value2
Inheritance Hierarchy
SystemObject
  Internal.LiteDBConnectionString

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class ConnectionString

The ConnectionString type exposes the following members.

Constructors
 NameDescription
Public methodConnectionString Initialize empty connection string
Public methodConnectionString(String) Initialize connection string parsing string in "key1=value1;key2=value2;...." format or only "filename" as default (when no ; char found)
Top
Properties
 NameDescription
Public propertyAutoRebuild "auto-rebuild": If last close database exception result a invalid data state, rebuild datafile on next open (default: false)
Public propertyCollation "collation": Set default collaction when database creation (default: "[CurrentCulture]/IgnoreCase")
Public propertyConnection "connection": Return how engine will be open (default: Direct)
Public propertyFilename "filename": Full path or relative path from DLL directory
Public propertyInitialSize "initial size": If database is new, initialize with allocated space - support KB, MB, GB (default: 0)
Public propertyItem Get value from parsed connection string. Returns null if not found
Public propertyPassword "password": Database password used to encrypt/decypted data pages
Public propertyReadOnly "readonly": Open datafile in readonly mode (default: false)
Public propertyUpgrade "upgrade": Check if data file is an old version and convert before open (default: false)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also