If I have a table in my database called \'Users\', there will be a class generated by LINQtoSQL called \'User\' with an already declared empty constructor.
What is t
Here's the C# version:
public partial class PENCILS_LinqToSql_DataClassesDataContext
{
public PENCILS_LinqToSql_DataClassesDataContext() : base(ConnectionString(), mappingSource)
{
}
public static String ConnectionString()
{
String CS;
String Key;
Key = System.Configuration.ConfigurationManager.AppSettings["DefaultConnectionString"].ToString();
/// Get the actual connection string.
CS = System.Configuration.ConfigurationManager.ConnectionStrings[Key].ToString();
return CS;
}
}