コード例 #1
0
        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();
        }
コード例 #2
0
 public void Insert(User user)
 {
     Console.WriteLine("在SQL SERVER中给User表增加一条记录");
 }
コード例 #3
0
 public void Insert(User user)
 {
     Console.WriteLine("在Access中给User表增加一条记录");
 }