| | |
| | | using System.Linq; |
| | | using Tiger.Model; |
| | | using System.Xml.Linq; |
| | | using System.ComponentModel; |
| | | |
| | | namespace Tiger.Api.Controllers.Base |
| | | { |
| | |
| | | q.FullName, |
| | | q.Namespace, |
| | | q.Name, |
| | | Properties = q.GetProperties().Select(p => new { p.Name, Type = p.PropertyType.Name }).ToList() |
| | | DisplayName = (q.GetCustomAttribute(typeof(DisplayNameAttribute)) as DisplayNameAttribute)?.DisplayName, |
| | | Properties = q.GetProperties().Select(p => new { |
| | | p.Name, |
| | | DisplayName = (p.GetCustomAttribute(typeof(DisplayNameAttribute)) as DisplayNameAttribute)?.DisplayName, |
| | | Type = p.PropertyType.Name }).ToList() |
| | | }) |
| | | }; |
| | | return Ok(data); |