示例#1
0
        ///<summary>
        /// A simple factory method to create a new <see cref="VuGroupList"/> instance.
        ///</summary>
        ///<param name="_groupname"></param>
        ///<param name="_exeSso"></param>
        ///<param name="_classid"></param>
        public static VuGroupList CreateVuGroupList(System.String _groupname, System.String _exeSso, System.String _classid)
        {
            VuGroupList newVuGroupList = new VuGroupList();

            newVuGroupList.Groupname = _groupname;
            newVuGroupList.ExeSso    = _exeSso;
            newVuGroupList.Classid   = _classid;
            return(newVuGroupList);
        }
示例#2
0
        ///<summary>
        ///  Returns a Typed VuGroupList Entity
        ///</summary>
        protected virtual VuGroupList Copy(IDictionary existingCopies)
        {
            if (existingCopies == null)
            {
                // This is the root of the tree to be copied!
                existingCopies = new Hashtable();
            }

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

            existingCopies.Add(this, copy);
            copy.SuppressEntityEvents = true;
            copy.Id        = this.Id;
            copy.Groupname = this.Groupname;
            copy.ExeSso    = this.ExeSso;
            copy.Classid   = this.Classid;


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