static void Main(string[] args) { using (var dbContext = new DbEfDataContext("connectionString")) { dbContext.ShowOutput(); } }
static void Main(string[] args) { using (var dbContext = new DbEfDataContext(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\Nikita\Documents\Store.mdf;Integrated Security=True;Connect Timeout=30")) { dbContext.ShowOutput(); } Console.ReadLine(); }