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;
     }
 }
 partial void DeleteUsers_Goals(Users_Goals instance);
 partial void UpdateUsers_Goals(Users_Goals instance);
 partial void InsertUsers_Goals(Users_Goals instance);
		private void detach_Users_Goals(Users_Goals entity)
		{
			this.SendPropertyChanging();
			entity.Users = null;
		}
		private void attach_Users_Goals(Users_Goals entity)
		{
			this.SendPropertyChanging();
			entity.Users = this;
		}