Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
コード例 #1
0
        public void Register(CharityRequirement charity, IList<Technology> infrastructure, IList<Technology> support)
        {
            foreach (var inf in infrastructure)
            {
                var charityInfrastructure = new CharityRequirementTechnologiesUsed
                {
                    CharityRequirement = charity,
                    CharityRequirementId = charity.CharityRequirementId,
                    TechnologyId = inf.TechnologyID
                };
            }

            foreach (var supp in support)
            {
                var charitySupport = new CharityRequirementSupportSkill
                {
                    CharityRequirement = charity,
                     TechnologyId = supp.TechnologyID,
                     CharityRequirementId = charity.CharityRequirementId
                };

            }
            _datacontext.CharityRequirements.InsertOnSubmit(charity);
        }
コード例 #2
0
 partial void DeleteCharityRequirementTechnologiesUsed(CharityRequirementTechnologiesUsed instance);
コード例 #3
0
 partial void InsertCharityRequirementTechnologiesUsed(CharityRequirementTechnologiesUsed instance);
コード例 #4
0
		private void detach_CharityRequirementTechnologiesUseds(CharityRequirementTechnologiesUsed entity)
		{
			this.SendPropertyChanging();
			entity.CharityRequirement = null;
		}
コード例 #5
0
		private void attach_CharityRequirementTechnologiesUseds(CharityRequirementTechnologiesUsed entity)
		{
			this.SendPropertyChanging();
			entity.Technology = this;
		}