示例#1
0
        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();
        }
示例#2
0
 partial void Deletepersonal_info_t(personal_info_t instance);
示例#3
0
 partial void Updatepersonal_info_t(personal_info_t instance);
示例#4
0
 partial void Insertpersonal_info_t(personal_info_t instance);