public void DePopulateSpecialTag(IQueryable <Person> q, int TagTypeId) { var tag = FetchOrCreateTag(Util.SessionId, Util.UserPeopleId ?? Util.UserId1, TagTypeId); TagPeople.DeleteAllOnSubmit(tag.PersonTags); SubmitChanges(); }
public void PopulateSpecialTag(IQueryable <Person> q, string tagname) { var tag = FetchOrCreateTag(tagname, Util.UserPeopleId ?? Util.UserId1, DbUtil.TagTypeId_Personal); TagPeople.DeleteAllOnSubmit(tag.PersonTags); SubmitChanges(); TagAll(q, tag); }
public void UnTagAll(IQueryable <Person> list) { var person = list.FirstOrDefault(); var tag = TagCurrent(); var q = from p in list from t in p.Tags where t.Id == tag.Id select t; foreach (var t in q) { TagPeople.DeleteOnSubmit(t); } SubmitChanges(); }