Esempio n. 1
0
        //
        // ctors
        //

        #region protected DBCreateSequenceQuery(string owner, string name)

        /// <summary>
        /// Protected constructor - use the static factory methods to instantiate
        /// </summary>
        /// <param name="owner"></param>
        /// <param name="name"></param>
        protected DBCreateSequenceQuery(string owner, string name)
        {
            this.MinValue       = DEF_MIN;
            this.MaxValue       = DEF_MAX;
            this.StartWithValue = DEF_START;
            this.IncrementValue = DEF_INCREMENT;
            this.Order          = DEF_ORDERED;
            this.CacheSize      = DEF_CACHE;
            this.Cycling        = DEF_CYCLE;

            this.Owner        = owner;
            this.SequenceName = name;
        }
Esempio n. 2
0
 /// <summary>
 /// Specifes that this sequence should NOT cycle the values - error when the max (or min) value is exceeded. Optional, and defaults to the engines choice.
 /// </summary>
 /// <returns></returns>
 public DBCreateSequenceQuery NoCycle()
 {
     this.Cycling = DBSequenceCycling.NoCycle;
     return(this);
 }