///<summary> /// A simple factory method to create a new <see cref="VwRoles"/> instance. ///</summary> ///<param name="_roleId"></param> ///<param name="_roleName"></param> ///<param name="_description"></param> ///<param name="_createTime"></param> ///<param name="_createUserId"></param> ///<param name="_status"></param> ///<param name="_userId"></param> ///<param name="_userName"></param> ///<param name="_userCnName"></param> ///<param name="_feBadgeId"></param> public static VwRoles CreateVwRoles(System.String _roleId, System.String _roleName, System.String _description, System.DateTime _createTime, System.String _createUserId, System.Int32 _status, System.String _userId, System.String _userName, System.String _userCnName, System.String _feBadgeId) { VwRoles newVwRoles = new VwRoles(); newVwRoles.RoleId = _roleId; newVwRoles.RoleName = _roleName; newVwRoles.Description = _description; newVwRoles.CreateTime = _createTime; newVwRoles.CreateUserId = _createUserId; newVwRoles.Status = _status; newVwRoles.UserId = _userId; newVwRoles.UserName = _userName; newVwRoles.UserCnName = _userCnName; newVwRoles.FeBadgeId = _feBadgeId; return(newVwRoles); }
///<summary> /// Returns a Typed VwRolesBase Entity ///</summary> public virtual VwRolesBase Copy() { //shallow copy entity VwRoles copy = new VwRoles(); copy.RoleId = this.RoleId; copy.RoleName = this.RoleName; copy.Description = this.Description; copy.CreateTime = this.CreateTime; copy.CreateUserId = this.CreateUserId; copy.Status = this.Status; copy.UserId = this.UserId; copy.UserName = this.UserName; copy.UserCnName = this.UserCnName; copy.FeBadgeId = this.FeBadgeId; copy.AcceptChanges(); return((VwRoles)copy); }
/// <summary> /// Gets the property value by name. /// </summary> /// <param name="entity">The entity.</param> /// <param name="propertyName">Name of the property.</param> /// <returns></returns> public static object GetPropertyValueByName(VwRoles entity, string propertyName) { switch (propertyName) { case "RoleId": return(entity.RoleId); case "RoleName": return(entity.RoleName); case "Description": return(entity.Description); case "CreateTime": return(entity.CreateTime); case "CreateUserId": return(entity.CreateUserId); case "Status": return(entity.Status); case "UserId": return(entity.UserId); case "UserName": return(entity.UserName); case "UserCnName": return(entity.UserCnName); case "FeBadgeId": return(entity.FeBadgeId); } return(null); }