Beispiel #1
0
 public void Delete(Goal goal)
 {
     db.Goals.DeleteOnSubmit(goal);
 }
Beispiel #2
0
		private void detach_Goals1(Goal entity)
		{
			this.SendPropertyChanging();
			entity.Player1 = null;
		}
Beispiel #3
0
 //Insert/Delete/Update
 public void Add(Goal goal)
 {
     db.Goals.InsertOnSubmit(goal);
 }
Beispiel #4
0
		private void detach_Goals(Goal entity)
		{
			this.SendPropertyChanging();
			entity.Game = null;
		}
Beispiel #5
0
		private void attach_Goals1(Goal entity)
		{
			this.SendPropertyChanging();
			entity.Player1 = this;
		}
Beispiel #6
0
		private void attach_Goals(Goal entity)
		{
			this.SendPropertyChanging();
			entity.Game = this;
		}
Beispiel #7
0
 partial void DeleteGoal(Goal instance);
Beispiel #8
0
 partial void UpdateGoal(Goal instance);
Beispiel #9
0
 partial void InsertGoal(Goal instance);
Beispiel #10
0
        public string ScoreGoal(int scorer, int position, int team, int gameID, int oppDefID, int selfGoal)
        {
            var score = new Goal
            {
                PlayerID = scorer,
                Position = position,
                GoalDate = DateTime.Now,
                Team = team,
                GameID = gameID,
                OppDefenseID = oppDefID,
                SelfGoal = selfGoal
            };

            goalRep.Add(score);
            goalRep.Save();

            return string.Format("{0}", score.ID);
        }