Beispiel #1
0
		private void AddDataDependencyToRootDataTemplates (RootDataTemplate rootDataTemplatesToWhichTheEntryShouldBeAdded,
									DataDependency entryToAdd)
			{
			UseForRootDataTemplate newEntry = DbDataContext.AltErlaaInfo.UseForRootDataTemplates.NewRow();
			newEntry.Id = Guid.NewGuid();
			newEntry.DataDependencyId = entryToAdd.Id;
			newEntry.ModifyTimeStamp = DateTime.Now;
			newEntry.RootDataTemplatesId = rootDataTemplatesToWhichTheEntryShouldBeAdded.Id;
			DbDataContext.AltErlaaInfo.UseForRootDataTemplates.Rows.Add(newEntry);
			UseFor newUseForEntry = DbDataContext.AltErlaaInfo.UseFors.NewRow();
			newUseForEntry.Id = Guid.NewGuid();
			newUseForEntry.DataDependencyId = entryToAdd.Id;
			newUseForEntry.ModifyTimeStamp = DateTime.Now;
			newUseForEntry.TypId = rootDataTemplatesToWhichTheEntryShouldBeAdded.Id;
			DbDataContext.AltErlaaInfo.UseFors.Rows.Add(newEntry);
			}
Beispiel #2
0
		private void RemoveDataDependencyFromRootDataTemplates (RootDataTemplate rootDataTemplatesFromWhichTheEntryShouldBeRemoved,
									DataDependency entryToRemove)
			{
			UseForRootDataTemplate useForUsage = Data.DbServer3.AltErlaaInfo.UseForRootDataTemplates.Where(sel =>
				sel.RootDataTemplatesId == rootDataTemplatesFromWhichTheEntryShouldBeRemoved.Id
				&& sel.DataDependencyId == entryToRemove.Id).FirstOrDefault();
			if (useForUsage != null)
				useForUsage.Delete();
			UseFor useForAssignement = Data.DbServer3.AltErlaaInfo.UseFors.Where(sel =>
							sel.DataDependencyId == entryToRemove.Id
								&& sel.RootDataTemplatesId == rootDataTemplatesFromWhichTheEntryShouldBeRemoved.Id).FirstOrDefault();
			if (useForAssignement != null)
				useForAssignement.Delete();
			}
Beispiel #3
0
		public void SetCorrectStandBildMappingEntries(RootDataTemplate Trigger)
			{
			ActiveRootDataTemplates = Trigger;
//			DataModell.StandBildMappingFullCacheInstance.StandBildMappingFullForThisRootDataTemplates = Trigger;
			DataModell.StandBildMappingFullCacheInstance.CorrectOrderedStandBildMappingFullForRootFormat = null;
			DataModell.StandBildMappingFullCacheInstance.ActiveStandBildMappingFullCollection
				= DataModell.StandBildMappingFullCacheInstance.CorrectOrderedStandBildMappingFullForRootFormat;
			}