예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Prisoners EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPrisoners(Prisoner prisoner)
 {
     base.AddObject("Prisoners", prisoner);
 }
예제 #2
0
 /// <summary>
 /// Create a new Prisoner object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="someData">Initial value of the SomeData property.</param>
 public static Prisoner CreatePrisoner(global::System.Int32 id, global::System.String someData)
 {
     Prisoner prisoner = new Prisoner();
     prisoner.Id = id;
     prisoner.SomeData = someData;
     return prisoner;
 }