DatabaseAttribute.Name Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the database.
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String
Property Value
The name.
Examples
<Database(Name:="Database#5")> _
Public Class Database5
Inherits DataContext
…
End Class
[Database(Name="Database#5")]
public class Database5 : DataContext
{
…
}
Remarks
This property is required if you use the DatabaseAttribute attribute.
The information is used only if the connection itself does not specify the database name.
Applies to
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.