예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SportsMatches EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSportsMatches(SportsMatch sportsMatch)
 {
     base.AddObject("SportsMatches", sportsMatch);
 }
예제 #2
0
 /// <summary>
 /// Create a new SportsMatch object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="matchName">Initial value of the MatchName property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="endTime">Initial value of the EndTime property.</param>
 /// <param name="homeTeam">Initial value of the HomeTeam property.</param>
 /// <param name="c_MatchScore">Initial value of the C_MatchScore property.</param>
 public static SportsMatch CreateSportsMatch(global::System.Int64 id, global::System.String matchName, global::System.DateTime startTime, global::System.DateTime endTime, global::System.String homeTeam, global::System.String c_MatchScore)
 {
     SportsMatch sportsMatch = new SportsMatch();
     sportsMatch.ID = id;
     sportsMatch.MatchName = matchName;
     sportsMatch.StartTime = startTime;
     sportsMatch.EndTime = endTime;
     sportsMatch.HomeTeam = homeTeam;
     sportsMatch.C_MatchScore = c_MatchScore;
     return sportsMatch;
 }