예제 #1
0
        public void UnFollow(string uid, string followid)
        {
            var       abc = ins.followings.Where(c => c.user_id == uid && c.following_id == followid).ToList();
            following fol = abc.FirstOrDefault();

            ins.followings.DeleteOnSubmit(fol);
            ins.SubmitChanges();
        }
예제 #2
0
        public void Follow(string uid, string followid)
        {
            following fol = new following();

            fol.user_id      = uid;
            fol.following_id = followid;
            ins.followings.InsertOnSubmit(fol);
            ins.SubmitChanges();
        }
예제 #3
0
        public void check(string uid, string followid, out bool chck)
        {
            var       abc = ins.followings.Where(c => c.user_id == uid && c.following_id == followid).ToList();
            following fol = abc.FirstOrDefault();

            if (fol == null)
            {
                chck = true;
            }
            else
            {
                chck = false;
            }
        }
예제 #4
0
        public int checkUser(string uid, string followid)
        {
            int       chk;
            var       abc = ins.followings.Where(c => c.user_id == uid && c.following_id == followid).ToList();
            following fol = abc.FirstOrDefault();

            if (fol == null)
            {
                chk = 0;
            }
            else
            {
                chk = 1;
            }
            return(chk);
        }
예제 #5
0
 private void detach_followings1(following entity)
 {
     this.SendPropertyChanging();
     entity.Person1 = null;
 }
예제 #6
0
 partial void Deletefollowing(following instance);
예제 #7
0
 private void attach_followings(following entity)
 {
     this.SendPropertyChanging();
     entity.Person = this;
 }
예제 #8
0
 partial void Updatefollowing(following instance);
예제 #9
0
 partial void Insertfollowing(following instance);