/// <summary> /// Deprecated Method for adding a new object to the Roles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRoles(Role role) { base.AddObject("Roles", role); }
/// <summary> /// Create a new Role object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="roleName">Initial value of the RoleName property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="status">Initial value of the Status property.</param> public static Role CreateRole(global::System.Guid id, global::System.String roleName, global::System.String description, global::System.Guid createdBy, global::System.DateTime createdOn, global::System.Boolean status) { Role role = new Role(); role.Id = id; role.RoleName = roleName; role.Description = description; role.CreatedBy = createdBy; role.CreatedOn = createdOn; role.Status = status; return role; }