static void Main(string[] args) { User user = new User(); Departement dept = new Departement(); IUser iu = DataAccess.CreateUser(); iu.Instert(user); iu.GetUser(1); IDepartment id = DataAccess.CreateDepartment(); id.Insert(dept); id.GetDepartement(1); Console.Read(); }
public void Insert(Departement departement) { Console.WriteLine("在SQL Server中给Department表增加一条记录"); }