public void AddNewFaculty(string p1, string p2, string p3, string p4, string p5, string p6, string p7, string p8, string p9, string p10, string p11, string p12, string p13) { LoginInfo l = new LoginInfo() { ID = p1, Password = p2, Status = p3 }; dataContext.GetTable<LoginInfo>().InsertOnSubmit(l); try { dataContext.SubmitChanges(); } catch (Exception ex) { } Faculty f = new Faculty() { EmployeeID = p1, FirstName = p4, LastName = p5, Address = p6, City = p7, Country = p8, PhoneNumber = p9, Email = p10, Salary = Convert.ToDouble(p11), Department = p12, DateOfBirth = Convert.ToDateTime(p13) }; dataContext.GetTable<Faculty>().InsertOnSubmit(f); try { dataContext.SubmitChanges(); } catch (Exception ex) { } }
partial void DeleteFaculty(Faculty instance);
partial void UpdateFaculty(Faculty instance);
partial void InsertFaculty(Faculty instance);