/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the persons EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTopersons(person person) { base.AddObject("persons", person); }
public void Update(person p, int id) { var record = personsContext.persons.First(q => q.ID == id); }