public void Insert(User user) { Console.WriteLine("在Access中给User插入了一条记录"); }
static void Main(string[] args) { User user = new User(); Department dept = new Department(); IUser iu = DataAccess.CreateUser(); iu.Insert(user); iu.GetUser(1); IDepartment id = DataAccess.CreateDepartment(); id.Insert(dept); id.GetDepartment(1); Console.Read(); }
public void Insert(User user) { Console.WriteLine("在SqlServer中给User插入了一条记录"); }
public void Insert(User user) { Console.WriteLine("在 sql 数据库中为 User表添加了一条记录。"); }