Hello Eddie Conner,
Yes it is possible to set the database connection in the code. You should instantiate the OpenAccessContext instance using the following approach:
string connectionString = @"data source=.\SQLEXPRESS;initial catalog=Northwind;integrated security=True";
BackendConfiguration backend = new BackendConfiguration();
backend.Backend = "mssql";
MetadataSource metadataSource = XmlMetadataSource.FromAssemblyResource("NorthwindModel.rlinq");
using (NorthwindContext context = new NorthwindContext(connectionString, backend, metadataSource))
We have prepared a sample application which demonstrates this scenario.
Hope that helps. Do not hesitate to write again if you have more questions.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items