Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Branches EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBranches(Branch branch)
 {
     base.AddObject("Branches", branch);
 }
Пример #2
0
 /// <summary>
 /// Create a new Branch object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="companyId">Initial value of the CompanyId property.</param>
 public static Branch CreateBranch(global::System.Int32 id, global::System.String name, global::System.Int32 companyId)
 {
     Branch branch = new Branch();
     branch.Id = id;
     branch.Name = name;
     branch.CompanyId = companyId;
     return branch;
 }