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