Export (0) Print
Expand All

DatabaseAttribute.Name Property

Gets or sets the name of the database.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public string Name { get; set; }

Property Value

Type: System.String
The name.

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.

[Database(Name="Database#5")]
public class Database5 : DataContext
{
    …
}

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2014 Microsoft