public void AddFollower(string userName, string name)
        {
            FOLLOWING f = new FOLLOWING();

            f.User_ID      = name;
            f.Following_ID = userName;
            db.FOLLOWER.Add(f);
            db.SaveChanges();
        }
示例#2
0
 public static void CreateUser(PERSON pERSON)
 {
     using (var context = new TwitterCloneDataContext())
     {
         context.PERSON.Add(pERSON);
         context.SaveChanges();
     }
 }