This topic has not yet been rated - Rate this topic

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
{
    ...
}

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.