/// <summary> /// Deprecated Method for adding a new object to the Branches EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBranches(Branch branch) { base.AddObject("Branches", branch); }
/// <summary> /// Create a new Branch object. /// </summary> /// <param name="branchID">Initial value of the BranchID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="contactID">Initial value of the ContactID property.</param> public static Branch CreateBranch(global::System.Int32 branchID, global::System.String name, global::System.Int32 contactID) { Branch branch = new Branch(); branch.BranchID = branchID; branch.Name = name; branch.ContactID = contactID; return branch; }