Example #1
0
        public void DePopulateSpecialTag(IQueryable <Person> q, int TagTypeId)
        {
            var tag = FetchOrCreateTag(Util.SessionId, Util.UserPeopleId ?? Util.UserId1, TagTypeId);

            TagPeople.DeleteAllOnSubmit(tag.PersonTags);
            SubmitChanges();
        }
Example #2
0
        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);
        }
Example #3
0
        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();
        }