Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SecurityUserElectionCycles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSecurityUserElectionCycles(SecurityUserElectionCycle securityUserElectionCycle)
 {
     base.AddObject("SecurityUserElectionCycles", securityUserElectionCycle);
 }