예제 #1
0
 public List<Cliente> Get()
 {
     var e = new AdventureWorksLT2008Entities();
     return e.Clientes.Take(10).ToList();
 }
예제 #2
0
        public Cliente Get(int id)
        {
            var e = new AdventureWorksLT2008Entities();

            return(e.Clientes.FirstOrDefault(x => x.CustomerID == id));
        }
예제 #3
0
 public Cliente Get(int id)
 {
     var e = new AdventureWorksLT2008Entities();
     return e.Clientes.FirstOrDefault(x => x.CustomerID == id);
 }
예제 #4
0
        public List <Cliente> Get()
        {
            var e = new AdventureWorksLT2008Entities();

            return(e.Clientes.Take(10).ToList());
        }