/// <summary> /// Deprecated Method for adding a new object to the workerSet EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToworkerSet(worker worker) { base.AddObject("workerSet", worker); }
/// <summary> /// Create a new worker object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="fname">Initial value of the fname property.</param> /// <param name="birthDate">Initial value of the birthDate property.</param> /// <param name="adress">Initial value of the adress property.</param> /// <param name="passport">Initial value of the passport property.</param> /// <param name="id_profession">Initial value of the id_profession property.</param> /// <param name="hDate">Initial value of the hDate property.</param> /// <param name="lname">Initial value of the lname property.</param> /// <param name="id_department_dep">Initial value of the id_department_dep property.</param> public static worker Createworker(global::System.Int32 id, global::System.String fname, global::System.DateTime birthDate, global::System.String adress, global::System.String passport, global::System.Int32 id_profession, global::System.DateTime hDate, global::System.String lname, global::System.Int32 id_department_dep) { worker worker = new worker(); worker.Id = id; worker.fname = fname; worker.birthDate = birthDate; worker.adress = adress; worker.passport = passport; worker.id_profession = id_profession; worker.hDate = hDate; worker.lname = lname; worker.id_department_dep = id_department_dep; return worker; }