/// <summary> /// Deprecated Method for adding a new object to the NhanViens EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToNhanViens(NhanVien nhanVien) { base.AddObject("NhanViens", nhanVien); }
/// <summary> /// Create a new NhanVien object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="hoTen">Initial value of the hoTen property.</param> /// <param name="ngaySinh">Initial value of the ngaySinh property.</param> /// <param name="diaChi">Initial value of the diaChi property.</param> /// <param name="tienLuong">Initial value of the tienLuong property.</param> /// <param name="ngheNghiep">Initial value of the ngheNghiep property.</param> /// <param name="thuocTinhKhac">Initial value of the thuocTinhKhac property.</param> public static NhanVien CreateNhanVien(global::System.Int32 id, global::System.String hoTen, global::System.DateTime ngaySinh, global::System.String diaChi, global::System.Double tienLuong, global::System.String ngheNghiep, global::System.String thuocTinhKhac) { NhanVien nhanVien = new NhanVien(); nhanVien.ID = id; nhanVien.hoTen = hoTen; nhanVien.ngaySinh = ngaySinh; nhanVien.diaChi = diaChi; nhanVien.tienLuong = tienLuong; nhanVien.ngheNghiep = ngheNghiep; nhanVien.thuocTinhKhac = thuocTinhKhac; return nhanVien; }