예제 #1
0
 public void Insert(Department department)
 {
     Console.WriteLine("在SQL Server中给Department表增加一条记录");
 }
예제 #2
0
 public void Insert(Department department)
 {
     Console.WriteLine("在SqlServer中给Department表增加一条记录");
 }
예제 #3
0
 public void Insert(Department department)
 {
     Console.WriteLine("在Access中给Department表增加一条记录");
 }
예제 #4
0
        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();
        }