コード例 #1
0
 public static List<tbl_customers> GetAllCustomer()
 {
     List<tbl_customers> _lstcustomers = null;
     using (rhtest1Entities db = new rhtest1Entities())
     {
         _lstcustomers = db.tbl_customers.ToList();
     }
     return _lstcustomers;
 }
コード例 #2
0
        public static List <tbl_customers> GetAllCustomer()
        {
            List <tbl_customers> _lstcustomers = null;

            using (rhtest1Entities db = new rhtest1Entities())
            {
                _lstcustomers = db.tbl_customers.ToList();
            }
            return(_lstcustomers);
        }