/// <summary> /// Create a new EmployeeRole object. /// </summary> /// <param name="roleID">Initial value of the RoleID property.</param> /// <param name="roleName">Initial value of the RoleName property.</param> public static EmployeeRole CreateEmployeeRole(global::System.Int32 roleID, global::System.String roleName) { EmployeeRole employeeRole = new EmployeeRole(); employeeRole.RoleID = roleID; employeeRole.RoleName = roleName; return employeeRole; }
/// <summary> /// Deprecated Method for adding a new object to the EmployeeRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployeeRoles(EmployeeRole employeeRole) { base.AddObject("EmployeeRoles", employeeRole); }