Inheritance: System.Data.Objects.DataClasses.EntityObject
Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Politician EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPolitician(Politician politician)
 {
     base.AddObject("Politician", politician);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Politician object.
 /// </summary>
 /// <param name="politicianId">Initial value of the PoliticianId property.</param>
 public static Politician CreatePolitician(global::System.Int32 politicianId)
 {
     Politician politician = new Politician();
     politician.PoliticianId = politicianId;
     return politician;
 }