<p>We are using Linq To SQL with our own data context logic that executes the one linq query across multiple databases. When we get the results back, we need the database for each of the rows. So...</p>

<p>I want to have a property on my class that will return the database name (SQL Server, so DB_NAME()). How can I do this in Linq To Sql?</p>

<p><strong>NOTE: We have hundreds of databases and do not want to put views in each db.  The return should come back as just another property on each row of the return result set.</strong></p>

How are you iterating through the different databases? Could you just include information from the context in the query? For example:
```
```
Dim results = _
    From x In myContext.MyTables _
    Select x, info = myContext.Connection.ConnectionString
```
```