XPObjectSource.ConnectionString Property
Specifies a connection string used to connect to a database.
Namespace: DevExpress.Xpo
Assembly: DevExpress.DataAccess.v24.1.dll
NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap
NuGet Package: DevExpress.DataAccess
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | null | A String that contains database connection parameters. |
Remarks
This property has effect if a Session object is not created in the XPObjectSource.ResolveSession event handler.
Tip
To improve your application’s maintainability and security, specify the connection string in the application configuration file (App.config or Web.config) and use the XPObjectSource.ConnectionStringName property instead of the ConnectionString property.