///<summary> /// A simple factory method to create a new <see cref="VuGroupItem"/> instance. ///</summary> ///<param name="_groupId"></param> ///<param name="_groupMember"></param> public static VuGroupItem CreateVuGroupItem(System.Int32 _groupId, System.String _groupMember) { VuGroupItem newVuGroupItem = new VuGroupItem(); newVuGroupItem.GroupId = _groupId; newVuGroupItem.GroupMember = _groupMember; return(newVuGroupItem); }
///<summary> /// Returns a Typed VuGroupItem Entity ///</summary> protected virtual VuGroupItem Copy(IDictionary existingCopies) { if (existingCopies == null) { // This is the root of the tree to be copied! existingCopies = new Hashtable(); } //shallow copy entity VuGroupItem copy = new VuGroupItem(); existingCopies.Add(this, copy); copy.SuppressEntityEvents = true; copy.Id = this.Id; copy.GroupId = this.GroupId; copy.GroupMember = this.GroupMember; copy.EntityState = this.EntityState; copy.SuppressEntityEvents = false; return(copy); }