public object Clone() { return(new SystemRole { RoleId = RoleId, RoleCode = RoleCode, RoleName = RoleName, CreatedBy = CreatedBy, CreateTime = CreateTime, LastUpdatedBy = LastUpdatedBy, LastUpdateTime = LastUpdateTime, Status = Status, CreateUser = CreateUser.Clone() as SystemUser, LastUpdateUser = LastUpdateUser.Clone() as SystemUser }); }