コード例 #1
0
 /// <summary>
 /// Create a new Team object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="stadium">Initial value of the stadium property.</param>
 /// <param name="manager">Initial value of the manager property.</param>
 /// <param name="founded">Initial value of the founded property.</param>
 /// <param name="points">Initial value of the points property.</param>
 /// <param name="wins">Initial value of the wins property.</param>
 /// <param name="losts">Initial value of the losts property.</param>
 /// <param name="draws">Initial value of the draws property.</param>
 public static Team CreateTeam(global::System.Int32 id, global::System.String name, global::System.String stadium, global::System.String manager, global::System.DateTime founded, global::System.Int16 points, global::System.Int16 wins, global::System.Int16 losts, global::System.Int16 draws)
 {
     Team team = new Team();
     team.Id = id;
     team.name = name;
     team.stadium = stadium;
     team.manager = manager;
     team.founded = founded;
     team.points = points;
     team.wins = wins;
     team.losts = losts;
     team.draws = draws;
     return team;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Teams EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTeams(Team team)
 {
     base.AddObject("Teams", team);
 }