コード例 #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;
     }
 }
コード例 #2
0
 partial void DeleteUsers_Goals(Users_Goals instance);
コード例 #3
0
 partial void UpdateUsers_Goals(Users_Goals instance);
コード例 #4
0
 partial void InsertUsers_Goals(Users_Goals instance);
コード例 #5
0
		private void detach_Users_Goals(Users_Goals entity)
		{
			this.SendPropertyChanging();
			entity.Users = null;
		}
コード例 #6
0
		private void attach_Users_Goals(Users_Goals entity)
		{
			this.SendPropertyChanging();
			entity.Users = this;
		}