Ejemplo n.º 1
0
 public Users_Goals AddUsers_Goals(int userId, int goalId, DateTime dateStart)
 {
     try
     {
         var user_goal = new Users_Goals();
         user_goal.DateStart = dateStart;
         user_goal.GoalId = goalId;
         user_goal.UserId = userId;
         db.Users_Goals.InsertOnSubmit(user_goal);
         db.SubmitChanges();
         return user_goal;
     }
     catch (Exception e)
     {
         return null;
     }
 }
Ejemplo n.º 2
0
 partial void DeleteUsers_Goals(Users_Goals instance);
Ejemplo n.º 3
0
 partial void UpdateUsers_Goals(Users_Goals instance);
Ejemplo n.º 4
0
 partial void InsertUsers_Goals(Users_Goals instance);
Ejemplo n.º 5
0
		private void detach_Users_Goals(Users_Goals entity)
		{
			this.SendPropertyChanging();
			entity.Users = null;
		}
Ejemplo n.º 6
0
		private void attach_Users_Goals(Users_Goals entity)
		{
			this.SendPropertyChanging();
			entity.Users = this;
		}