Beispiel #1
0
 public void Add(TagPresentationLink link)
 {
     link.Id = dataContext.TagPresentationLinks.Count();
     bool temp = true;
     foreach (TagPresentationLink link1 in dataContext.TagPresentationLinks)
     {
         if (link.PresentationId == link1.PresentationId && link.TagId == link1.TagId) { temp = false; }
     }
     if (temp)
     {
         dataContext.TagPresentationLinks.InsertOnSubmit(link);
         dataContext.SubmitChanges();
     }
 }
Beispiel #2
0
 public void Update(TagPresentationLink link)
 {
     TagPresentationLink baseLink = GetLinkById(link.Id);
     baseLink.IsActive = false;
     dataContext.SubmitChanges();
 }
Beispiel #3
0
		private void detach_TagPresentationLinks(TagPresentationLink entity)
		{
			this.SendPropertyChanging();
			entity.Tag = null;
		}
Beispiel #4
0
 partial void DeleteTagPresentationLink(TagPresentationLink instance);
Beispiel #5
0
 partial void UpdateTagPresentationLink(TagPresentationLink instance);
Beispiel #6
0
 partial void InsertTagPresentationLink(TagPresentationLink instance);
Beispiel #7
0
		private void attach_TagPresentationLinks(TagPresentationLink entity)
		{
			this.SendPropertyChanging();
			entity.Presentation = this;
		}