예제 #1
0
 static void Main(string[] args)
 {
     using (var dbContext = new DbEfDataContext("connectionString"))
     {
         dbContext.ShowOutput();
     }
 }
예제 #2
0
 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();
 }