Inheritance: System.Data.Objects.DataClasses.EntityObject
コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sponsors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSponsors(Sponsor sponsor)
 {
     base.AddObject("Sponsors", sponsor);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Sponsor object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Sponsor CreateSponsor(global::System.Int32 id, global::System.Boolean isActive)
 {
     Sponsor sponsor = new Sponsor();
     sponsor.Id = id;
     sponsor.IsActive = isActive;
     return sponsor;
 }