System::Data::Common::DbProviderFactories Class Reference

Static Public Member Functions

static ASPOSECPP_SHARED_API SharedPtr< DbProviderFactoryGetFactory (const String &providerInvariantName)

Detailed Description

API to get DB provider factories. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Member Function Documentation

◆ GetFactory()

static ASPOSECPP_SHARED_API SharedPtr<DbProviderFactory> System::Data::Common::DbProviderFactories::GetFactory ( const String providerInvariantName)

Gets DB provider factory by name.

providerInvariantNameProvider name (e. g. database vendor name).
Provider factory.