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(); }
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(); }
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; } }
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); }
private void detach_followings1(following entity) { this.SendPropertyChanging(); entity.Person1 = null; }
partial void Deletefollowing(following instance);
private void attach_followings(following entity) { this.SendPropertyChanging(); entity.Person = this; }
partial void Updatefollowing(following instance);
partial void Insertfollowing(following instance);