ORM Sample Class Library

DataManagerBase.Connection Property

Gets and sets the SqlConnection This property will only have an SqlConnection if it was supplied by the client, otherwise an internal connection will be used, and it will not be exposed.

[Visual Basic]
Public Property Connection As SqlConnection
[C#]
public System.Data.SqlClient.SqlConnection Connection {get; set;}

Remarks

If the SqlConnection is closed, it will be opened and closed, else left open.

See Also

DataManagerBase Class | OrmLib Namespace


ethod, DataManagerBase class">
dsWith enumeration member">