using System;
using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using DAL;using MODEL;namespace BLL
{ public class ZhpBLL<T> { ZhpDAL<T> dal = new ZhpDAL<T>(); //显示+下拉绑定 public List<T> GetList(string TableName) { return dal.GetList(TableName); } }}
Model
using System;
using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MODEL
{ public class ZhpMODEL { public int CarID { get; set; } public String CarTypeName { get; set; } public int CarType { get; set; } } public class CarMODEL { public int ID { get; set; } public String Pai { get; set; } public String Xi { get; set; } public String Price { get; set; } public String Img { get; set; } public String Age { get; set; } public String Bian { get; set; } public String Xing { get; set; } public String Cheng { get; set; } public String PaiLiang { get; set; } public String Zhun { get; set; } public String Zuo { get; set; } public String You { get; set; } public String Cocle { get; set; } public String PaiDi { get; set; } }}