/// <summary> /// Deprecated Method for adding a new object to the Prisoners EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPrisoners(Prisoner prisoner) { base.AddObject("Prisoners", prisoner); }
/// <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; }