Visual Basic
C#
Managed Extensions for C++
C++/CLI
Use this method before creating a DataSourceCollection. Then set the current data source in the collection before calling OpenSession.