The DatabaseMapping object represents a Microsoft SQL Server database mapping.
The following tables list the members exposed by the DatabaseMapping type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| DatabaseMapping | Initializes a new instance of the DatabaseMapping class for the specified login, database, and user. | 
顶部
Public Properties
| 名称 | Description | |
|---|---|---|
![]()  | 
DBName | Gets the name of the database in which the login is mapped to the database user. | 
![]()  | 
LoginName | Gets the name of the login that is mapped to the user in the database. | 
![]()  | 
UserName | Gets the database user that is mapped to the login in the database. | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
![]()  | 
Equals | Overloaded. (inherited from Object ) | 
![]()  | 
GetHashCode | (inherited from Object ) | 
![]()  | 
GetType | (inherited from Object ) | 
![]() ![]()  | 
ReferenceEquals | (inherited from Object ) | 
![]()  | 
ToString | Overridden. Returns a string that represents the DatabaseMapping object. | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
![]()  | 
Finalize | (inherited from Object ) | 
![]()  | 
MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
DatabaseMapping Class
Microsoft.SqlServer.Management.Smo Namespace
.gif)
.gif)
.gif)
.gif)