Ejemplo n.º 1
0
 public void Test()
 {
     var connection = new EntityConnection(@"metadata=res://*/ProductCatalog.csdl|res://*/ProductCatalog.ssdl|res://*/ProductCatalog.msl;provider=System.Data.SqlClient;provider connection string='Data Source=sr01.lutecia.ge\SQLEXPRESS,1433;Initial Catalog=ProductCatalog;User ID=sa;Password=tatu;MultipleActiveResultSets=True';");
     using (var context = new ProductCatalogContainer(connection))
     {
         Console.WriteLine(context.ProductDetailViewModels.FirstOrDefault());
     }
 }
Ejemplo n.º 2
0
        public void Test()
        {
            var connection = new EntityConnection(@"metadata=res://*/ProductCatalog.csdl|res://*/ProductCatalog.ssdl|res://*/ProductCatalog.msl;provider=System.Data.SqlClient;provider connection string='Data Source=sr01.lutecia.ge\SQLEXPRESS,1433;Initial Catalog=ProductCatalog;User ID=sa;Password=tatu;MultipleActiveResultSets=True';");

            using (var context = new ProductCatalogContainer(connection))
            {
                Console.WriteLine(context.ProductDetailViewModels.FirstOrDefault());
            }
        }