Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPObjectSource.ConnectionStringName Property

Specifies the name of the connection string used to connect to a database. The specified name should exist in the application configuration file.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

NuGet Package: DevExpress.Xpo

Declaration

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

Property Value

Type Default Description
String *null*

A String specifying the name of a the connection string.

Remarks

This property has effect if a Session object is not created in the XPObjectSource.ResolveSession event handler.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ConnectionStringName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also