LinqPad 5 to 10.2.700.12 Windows endpoint binding in web.config

Hello - I’m having an issue with authentication and am using Windows endpoint binding. How can I specify which user account to use?

void Main()
{
	// Change query references to point to the correct Ice.Data.Model.dll and Erp.Data.910100.dll from your server directories (Press F4 or Edit the .linq file).	
	// Change this to point to your server web.config file
	var webConfigFile = @"\\E10Server\c$\inetpub\wwwroot\ERP10_Test\Server\web.config";
	
	InitialiseConfiguration(webConfigFile);
	//
	// Enable for 10.2 Only
	EpiProviderRegistrator.Register();
		var Db = new ErpContext();
		Db.Part.Where(p=>p.Company == "1000" && p.PartNum == "American Legends").Dump();
}

private void InitialiseConfiguration(string webConfigPath)
{
	// Resetting is based on http://stackoverflow.com/questions/6150644/change-default-app-config-at-runtime
	AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", webConfigPath);
	typeof(ConfigurationManager)
	                .GetField("s_initState", BindingFlags.NonPublic | 
	                                         BindingFlags.Static)
	                .SetValue(null, 0);
	
	            typeof(ConfigurationManager)
	                .GetField("s_configSystem", BindingFlags.NonPublic | 
	                                            BindingFlags.Static)
	                .SetValue(null, null);
	
	            typeof(ConfigurationManager)
	                .Assembly.GetTypes()
	                .Where(x => x.FullName == 
	                            "System.Configuration.ClientConfigPaths")
	                .First()
	                .GetField("s_current", BindingFlags.NonPublic | 
	                                       BindingFlags.Static)
	                .SetValue(null, null);
	
	//ConfigurationManager.ConnectionStrings.Dump();
}

It is not binding, it is SQL server logic, that probably also uses SSPI.
You can add this user to SQL server logins.

Thanks! I just didn’t know if there was a way to impersonate before the server was queried.
I wound up running LinqPad under an administrator account that has rights to the SQL server instead and the authentication error didn’t get thrown.

New error though:

No Entity Framework provider found for the ADO.NET provider with invariant name ‘System.Data.SqlClient’. Make sure the provider is registered in the ‘entityFramework’ section of the application config file. See Configuration File Settings - EF6 | Microsoft Learn for more information.

any ideas?