Example #1
0
 /// <summary>
 /// Create a new EmployeeRole object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="empID">Initial value of the EmpID property.</param>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 /// <param name="isAdmin">Initial value of the IsAdmin property.</param>
 public static EmployeeRole CreateEmployeeRole(global::System.Int32 id, global::System.Int32 empID, global::System.Int32 roleID, global::System.Boolean isAdmin)
 {
     EmployeeRole employeeRole = new EmployeeRole();
     employeeRole.ID = id;
     employeeRole.EmpID = empID;
     employeeRole.RoleID = roleID;
     employeeRole.IsAdmin = isAdmin;
     return employeeRole;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EmployeeRoles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEmployeeRoles(EmployeeRole employeeRole)
 {
     base.AddObject("EmployeeRoles", employeeRole);
 }