Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
コード例 #1
0
        public void Register(Volunteer volunteer, IList<JobRole> jobRoles, IList<Technology> technologies)
        {
            foreach (var jobRole in jobRoles)
            {
                var volunteerJobRole = new VolunteerJobRole
                                           {
                                               Volunteer = volunteer,
                                               JobRoleID = jobRole.JobRoleID,
                                               VolunteerID = volunteer.VolunteerID
                                           };
            }

            foreach (var technology in technologies)
            {
                var volunteerTechnology = new VolunteerTechnology()
                                            {
                                                Volunteer = volunteer,
                                                TechnologyID = technology.TechnologyID,
                                                VolunteerID = volunteer.VolunteerID
                                            };

            }

            _datacontext.Volunteers.InsertOnSubmit(volunteer);
        }
コード例 #2
0
		private void detach_VolunteerJobRoles(VolunteerJobRole entity)
		{
			this.SendPropertyChanging();
			entity.JobRole = null;
		}
コード例 #3
0
 partial void DeleteVolunteerJobRole(VolunteerJobRole instance);
コード例 #4
0
 partial void UpdateVolunteerJobRole(VolunteerJobRole instance);
コード例 #5
0
 partial void InsertVolunteerJobRole(VolunteerJobRole instance);
コード例 #6
0
		private void attach_VolunteerJobRoles(VolunteerJobRole entity)
		{
			this.SendPropertyChanging();
			entity.Volunteer = this;
		}