Solved

LINQ to SQL DBML - Dynamic Database attribute

Posted on 2009-07-14
1
910 Views
Last Modified: 2013-11-11
In the DBML file there is the setting for database name:

    [System.Data.Linq.Mapping.DatabaseAttribute(Name = "DB NAME")]

I want this setting to come from the appsetting in web.config as so:

ConfigurationManager.AppSettings["DataBaseName"];

How is this acheived?
0
Comment
Question by:iziizi
1 Comment
 

Accepted Solution

by:
iziizi earned 0 total points
ID: 24848431
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now