Exemple #1
0
 public IQueryable <Customer> SqlCustomers()
 {
     using (var sqlContext = new NorthwindSqlContext())
     {
         var custs = sqlContext.Customers();
         return(custs.AsQueryable());
     }
 }
        public IQueryable<Customer> SqlCustomers()
        {
            using (var sqlContext = new NorthwindSqlContext())
            {
                var custs = sqlContext.Customers();
                return custs.AsQueryable();
            }

        }