///<summary> /// A simple factory method to create a new <see cref="CallRoles"/> instance. ///</summary> ///<param name="_callUserId"></param> ///<param name="_tocallUserId"></param> ///<param name="_createTime"></param> ///<param name="_status"></param> public static CallRoles CreateCallRoles(System.String _callUserId, System.String _tocallUserId, System.DateTime?_createTime, System.Int32?_status) { CallRoles newCallRoles = new CallRoles(); newCallRoles.CallUserId = _callUserId; newCallRoles.TocallUserId = _tocallUserId; newCallRoles.CreateTime = _createTime; newCallRoles.Status = _status; return(newCallRoles); }
///<summary> /// Returns a Typed CallRoles Entity ///</summary> protected virtual CallRoles Copy(IDictionary existingCopies) { if (existingCopies == null) { // This is the root of the tree to be copied! existingCopies = new Hashtable(); } //shallow copy entity CallRoles copy = new CallRoles(); existingCopies.Add(this, copy); copy.SuppressEntityEvents = true; copy.CallRoleId = this.CallRoleId; copy.CallUserId = this.CallUserId; copy.TocallUserId = this.TocallUserId; copy.CreateTime = this.CreateTime; copy.Status = this.Status; copy.EntityState = this.EntityState; copy.SuppressEntityEvents = false; return(copy); }