public void AddNewPerson(string personID, string name, string login, string password, string position, string phone, string additionalPhone, DateTime birthday, string homeAddress, int salaryPerDay) { _dataContext = new dbDataContext(); _personalInfoTables = _dataContext.GetTable<personal_info_t>(); //var persons = personalInfoTables.Where(person => person.additional_phone == "000000").ToList(); personal_info_t myPerson = new personal_info_t(); myPerson.person_id = personID; myPerson.name = name; myPerson.staff_login = login; myPerson.staff_password = password; myPerson.position = position; myPerson.phone = phone; myPerson.additional_phone = additionalPhone; myPerson.birthday = birthday; myPerson.home_address = homeAddress; myPerson.salary_per_day = salaryPerDay; _personalInfoTables.InsertOnSubmit(myPerson); _dataContext.SubmitChanges(); }
partial void Deletepersonal_info_t(personal_info_t instance);
partial void Updatepersonal_info_t(personal_info_t instance);
partial void Insertpersonal_info_t(personal_info_t instance);