CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
db_provider_factory.h
1
2#ifndef _aspose_data_common_db_provider_factory_h_
3#define _aspose_data_common_db_provider_factory_h_
4
5#include <system/object.h>
6
7namespace System { namespace Data { namespace Common {
8
9class DbCommand;
10class DbConnection;
11
16class ASPOSECPP_SHARED_CLASS DbProviderFactory : public System::Object
17{
19 RTTI_INFO(System::Data::Common::DbProviderFactory, ::System::BaseTypesInfo<System::Object>)
20
21public:
24 virtual ASPOSECPP_SHARED_API SharedPtr<DbCommand> CreateCommand() = 0;
27 virtual ASPOSECPP_SHARED_API SharedPtr<DbConnection> CreateConnection() = 0;
28};
29
30} } } // namespace System::Data::Common
31
32#endif // _aspose_data_common_db_provider_factory_h_
Provider to access database. Objects of this class should only be allocated using System::MakeObject(...
Definition: db_provider_factory.h:17
virtual SharedPtr< DbConnection > CreateConnection()=0
Creates database connection.
virtual SharedPtr< DbCommand > CreateCommand()=0
RTTI information.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9