Skip to main content
.NET 8.0+

XPObjectSource.ConnectionString Property

Specifies a connection string used to connect to a database.

Namespace: DevExpress.Xpo

Assembly: DevExpress.DataAccess.v24.2.dll

Declaration

[DefaultValue(null)]
public string ConnectionString { get; set; }

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.

See Also