コード例 #1
0
 partial void DeletePatientData(PatientData instance);
コード例 #2
0
 partial void InsertPatientData(PatientData instance);
コード例 #3
0
 partial void UpdatePatientData(PatientData instance);
コード例 #4
0
        public bool PatientRegistration(string healthInsuranceNo, string firstName, string lastName, int phoneNumber, string address, string email)
        {
            PatientData patient = new PatientData()
            {
                HealthInsuranceNo = healthInsuranceNo,
                FirstName = firstName,
                LastName = lastName,
                PhoneNumber = phoneNumber,
                Address = address,
                Email = email
            };

            db.PatientDatas.InsertOnSubmit(patient);

            try
            {
                db.SubmitChanges();
            }
            catch (Exception e)
            {
                throw new FaultException(e.Message);
            }

            return true;
        }