Пример #1
0
        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();
     }
 }