ProfileMapping
Overview
The ProfileMapping class is used by the DatabaseProfile class to store mappings between database profile(s) that are known by the current DatabaseProfile instance and database driver(s) loaded by the Data Abstract engine.
In other words for database profiles like ODBC.NET that allow to specify auxiliary database drivers in the connection string Data Abstract will define a list of mappings like 'for aux driver named {MySQL ODBC 3.51 Driver} use database profile MySQL'. For database profiles like MSSQL.NET that map to a single database driver Data Abstract create an internal ProfileMapping instance with a predefined name ***** that is mapped to the corresponding database driver.
In most cases there is no need to assess ProfileMapping instances directly.
Location
- Reference: RemObjects.DataAbstract.Server.dll
- Namespace: RemObjects.DataAbstract.Server
constructor
Creates a new instance of the ProfileMapping class and sets its Name, Value, ProfileName and DefaultAuxParams properties.
constructor(name: String; value: String; profileName: String; defaultAuxParams: String)
ProfileMapping(String name, String value, String profileName, String defaultAuxParams)
Sub New(name As String, value As String, profileName As String, defaultAuxParams As String)
Parameters:
- name: Mapping name
- value: Original profile name
- profileName: Database driver profile name
- defaultAuxParams: Default connection parameters
DefaultAuxParams
Gets suggested connection settings.
property DefaultAuxParams: String read;
String DefaultAuxParams { get; }
ReadOnly Property DefaultAuxParams() As String
MapDatabase
Gets or sets database-driver specific name of the connection string parameter that defines database to connect to.
property MapDatabase: String read write;
String MapDatabase { get; set; }
Property MapDatabase() As String
MapPassword
Gets or sets database-driver specific name of the connection string parameter that defines user password.
property MapPassword: String read write;
String MapPassword { get; set; }
Property MapPassword() As String
MapServer
Gets or sets database-driver specific name of the connection string parameter that definesdatabase server to connect to.
property MapServer: String read write;
String MapServer { get; set; }
Property MapServer() As String
MapUserID
Gets or sets database-driver specific name of the connection string parameter that defines user name.
property MapUserID: String read write;
String MapUserID { get; set; }
Property MapUserID() As String
Name
Gets or sets database profile mapping name.
property Name: String read write;
String Name { get; set; }
Property Name() As String
Profile
Gets the DatabaseProfile instance that is mapped to the current ProfileMapping instance.
property Profile: DatabaseProfile read;
DatabaseProfile Profile { get; }
ReadOnly Property Profile() As DatabaseProfile
ProfileName
Gets the name of the DatabaseProfile instance that is mapped to the current ProfileMapping instance.
property ProfileName: String read;
String ProfileName { get; }
ReadOnly Property ProfileName() As String
Value
Gets or sets database profile mapping name. Unlike the %%ProfileMapping%Name property this property cannot be changed outside the ProfileMapping%% constructor.
property Value: String read;
String Value { get; }
ReadOnly Property Value() As String
DefaultAuxParams
Gets suggested connection settings.
property DefaultAuxParams: String read;
String DefaultAuxParams { get; }
ReadOnly Property DefaultAuxParams() As String
MapDatabase
Gets or sets database-driver specific name of the connection string parameter that defines database to connect to.
property MapDatabase: String read write;
String MapDatabase { get; set; }
Property MapDatabase() As String
MapPassword
Gets or sets database-driver specific name of the connection string parameter that defines user password.
property MapPassword: String read write;
String MapPassword { get; set; }
Property MapPassword() As String
MapServer
Gets or sets database-driver specific name of the connection string parameter that definesdatabase server to connect to.
property MapServer: String read write;
String MapServer { get; set; }
Property MapServer() As String
MapUserID
Gets or sets database-driver specific name of the connection string parameter that defines user name.
property MapUserID: String read write;
String MapUserID { get; set; }
Property MapUserID() As String
Name
Gets or sets database profile mapping name.
property Name: String read write;
String Name { get; set; }
Property Name() As String
Profile
Gets the DatabaseProfile instance that is mapped to the current ProfileMapping instance.
property Profile: DatabaseProfile read;
DatabaseProfile Profile { get; }
ReadOnly Property Profile() As DatabaseProfile
ProfileName
Gets the name of the DatabaseProfile instance that is mapped to the current ProfileMapping instance.
property ProfileName: String read;
String ProfileName { get; }
ReadOnly Property ProfileName() As String
Value
Gets or sets database profile mapping name. Unlike the %%ProfileMapping%Name property this property cannot be changed outside the ProfileMapping%% constructor.
property Value: String read;
String Value { get; }
ReadOnly Property Value() As String
constructor
Creates a new instance of the ProfileMapping class and sets its Name, Value, ProfileName and DefaultAuxParams properties.
constructor(name: String; value: String; profileName: String; defaultAuxParams: String)
ProfileMapping(String name, String value, String profileName, String defaultAuxParams)
Sub New(name As String, value As String, profileName As String, defaultAuxParams As String)
Parameters:
- name: Mapping name
- value: Original profile name
- profileName: Database driver profile name
- defaultAuxParams: Default connection parameters