///<summary>
        /// A simple factory method to create a new <see cref="EvlUser"/> instance.
        ///</summary>
        ///<param name="_userid"></param>
        ///<param name="_modelId"></param>
        public static EvlUser CreateEvlUser(System.String _userid, System.Int32?_modelId)
        {
            EvlUser newEvlUser = new EvlUser();

            newEvlUser.Userid  = _userid;
            newEvlUser.ModelId = _modelId;
            return(newEvlUser);
        }
        ///<summary>
        ///  Returns a Typed EvlUser Entity
        ///</summary>
        protected virtual EvlUser Copy(IDictionary existingCopies)
        {
            if (existingCopies == null)
            {
                // This is the root of the tree to be copied!
                existingCopies = new Hashtable();
            }

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

            existingCopies.Add(this, copy);
            copy.SuppressEntityEvents = true;
            copy.Id      = this.Id;
            copy.Userid  = this.Userid;
            copy.ModelId = this.ModelId;


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