ModelMetadataProviders 获取类型元数据 var aa = ModelMetadataProviders.Current.GetMetadataForType(null, typeof(LogModel)).Properties; 有时候不是我们失去了目标,而是失去了方向。