private static void Main(string[] args) { User user = new User(); Department dept = new Department(); IUser iu = DataAccess.CreateUser(); iu.Insert(user); iu.GetUser(1); IDepartment idept = DataAccess.CreateDepartment(); idept.Insert(dept); idept.GetDepartment(1); Console.ReadLine(); }
public void Insert(User user) { Console.WriteLine("在SQL SERVER中给User表增加一条记录"); }
public void Insert(User user) { Console.WriteLine("在Access中给User表增加一条记录"); }