Example #1
0
 /// <summary>
 /// Create a new person object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static person Createperson(global::System.Int32 id)
 {
     person person = new person();
     person.ID = id;
     return person;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the persons EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTopersons(person person)
 {
     base.AddObject("persons", person);
 }
Example #3
0
 public void Update(person p, int id)
 {
     var record = personsContext.persons.First(q => q.ID == id);
 }