.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+

XpoDefault.GetDataLayer Method

Name Parameters Description
GetDataLayer(AutoCreateOption) static defaultAutoCreateOption Creates a data layer for the default connection string and default metadata information.
GetDataLayer(XPDictionary, AutoCreateOption) static dictionary, defaultAutoCreateOption Creates a data layer for the default connection string and specified metadata information.
GetDataLayer(IDbConnection, AutoCreateOption) static connection, autoCreateOption Creates a data layer for the specified connection and the default metadata.
GetDataLayer(IDbConnection, XPDictionary, AutoCreateOption) static connection, dictionary, autoCreateOption Creates a data layer for the specified connection and metadata information.
GetDataLayer(IDbConnection, XPDictionary, AutoCreateOption, out IDisposable[]) static connection, dictionary, autoCreateOption, objectsToDisposeOnDisconnect Creates a data layer for the specified connection and metadata information and returns objects that need to be disposed of when a connection to a data store is closed.
GetDataLayer(String, AutoCreateOption) static connectionString, defaultAutoCreateOption Creates a data access layer.
GetDataLayer(String, XPDictionary, AutoCreateOption) static connectionString, dictionary, defaultAutoCreateOption Creates a data access layer.
GetDataLayer(String, XPDictionary, AutoCreateOption, out IDisposable[]) static connectionString, dictionary, defaultAutoCreateOption, objectsToDisposeOnDisconnect Creates a data access layer.