Пример #1
0
        ///<summary>
        /// A simple factory method to create a new <see cref="EvlScoredescription"/> instance.
        ///</summary>
        ///<param name="_scoreLevel"></param>
        ///<param name="_description"></param>
        public static EvlScoredescription CreateEvlScoredescription(System.Int32?_scoreLevel, System.String _description)
        {
            EvlScoredescription newEvlScoredescription = new EvlScoredescription();

            newEvlScoredescription.ScoreLevel  = _scoreLevel;
            newEvlScoredescription.Description = _description;
            return(newEvlScoredescription);
        }
Пример #2
0
        ///<summary>
        ///  Returns a Typed EvlScoredescription Entity
        ///</summary>
        protected virtual EvlScoredescription Copy(IDictionary existingCopies)
        {
            if (existingCopies == null)
            {
                // This is the root of the tree to be copied!
                existingCopies = new Hashtable();
            }

            //shallow copy entity
            EvlScoredescription copy = new EvlScoredescription();

            existingCopies.Add(this, copy);
            copy.SuppressEntityEvents = true;
            copy.Id          = this.Id;
            copy.ScoreLevel  = this.ScoreLevel;
            copy.Description = this.Description;


            copy.EntityState          = this.EntityState;
            copy.SuppressEntityEvents = false;
            return(copy);
        }