/// <summary> /// Create a new Officer object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="uname">Initial value of the uname property.</param> /// <param name="pword">Initial value of the pword property.</param> /// <param name="fname">Initial value of the fname property.</param> /// <param name="lname">Initial value of the lname property.</param> public static Officer CreateOfficer(global::System.Int32 id, global::System.String uname, global::System.String pword, global::System.String fname, global::System.String lname) { Officer officer = new Officer(); officer.id = id; officer.uname = uname; officer.pword = pword; officer.fname = fname; officer.lname = lname; return officer; }
/// <summary> /// Deprecated Method for adding a new object to the Officers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOfficers(Officer officer) { base.AddObject("Officers", officer); }