Пример #1
0
        //adds a new like for a user to the database
        public void addALike(string likeToAdd, int userID)
        {
            Debug.WriteLine(userID);
            tblLike like = new tblLike();
            like.likes = likeToAdd;
            like.userID = userID;
            usersDb.tblLikes.InsertOnSubmit(like);

            usersDb.SubmitChanges();
        }
Пример #2
0
        //adds a new like for a user to the database
        public void addALike(string likeToAdd, int userID)
        {
            Debug.WriteLine(userID);
            tblLike like = new tblLike();

            like.likes  = likeToAdd;
            like.userID = userID;
            usersDb.tblLikes.InsertOnSubmit(like);

            usersDb.SubmitChanges();
        }
Пример #3
0
		private void detach_tblLikes(tblLike entity)
		{
			this.SendPropertyChanging();
			entity.tblUser = null;
		}
Пример #4
0
		private void attach_tblLikes(tblLike entity)
		{
			this.SendPropertyChanging();
			entity.tblUser = this;
		}
Пример #5
0
 partial void DeletetblLike(tblLike instance);
Пример #6
0
 partial void UpdatetblLike(tblLike instance);
Пример #7
0
 partial void InserttblLike(tblLike instance);
Пример #8
0
 private void detach_tblLikes(tblLike entity)
 {
     this.SendPropertyChanging();
     entity.tblUser = null;
 }
Пример #9
0
 private void attach_tblLikes(tblLike entity)
 {
     this.SendPropertyChanging();
     entity.tblUser = this;
 }
Пример #10
0
 partial void DeletetblLike(tblLike instance);
Пример #11
0
 partial void UpdatetblLike(tblLike instance);
Пример #12
0
 partial void InserttblLike(tblLike instance);