/// <summary> /// Deprecated Method for adding a new object to the EmployeeTerritories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployeeTerritories(EmployeeTerritory employeeTerritory) { base.AddObject("EmployeeTerritories", employeeTerritory); }
/// <summary> /// Create a new EmployeeTerritory object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="employeeID">Initial value of the EmployeeID property.</param> /// <param name="territoryID">Initial value of the TerritoryID property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static EmployeeTerritory CreateEmployeeTerritory(global::System.Int32 id, global::System.Int32 employeeID, global::System.Int32 territoryID, global::System.Int32 rowVersion) { EmployeeTerritory employeeTerritory = new EmployeeTerritory(); employeeTerritory.ID = id; employeeTerritory.EmployeeID = employeeID; employeeTerritory.TerritoryID = territoryID; employeeTerritory.RowVersion = rowVersion; return employeeTerritory; }