/// <summary> /// Create a new SecurityUserElectionCycle object. /// </summary> /// <param name="userName">Initial value of the UserName property.</param> /// <param name="electionCycle">Initial value of the ElectionCycle property.</param> public static SecurityUserElectionCycle CreateSecurityUserElectionCycle(global::System.String userName, global::System.String electionCycle) { SecurityUserElectionCycle securityUserElectionCycle = new SecurityUserElectionCycle(); securityUserElectionCycle.UserName = userName; securityUserElectionCycle.ElectionCycle = electionCycle; return(securityUserElectionCycle); }
/// <summary> /// Deprecated Method for adding a new object to the SecurityUserElectionCycles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSecurityUserElectionCycles(SecurityUserElectionCycle securityUserElectionCycle) { base.AddObject("SecurityUserElectionCycles", securityUserElectionCycle); }