【发布时间】:2016-07-26 18:02:48
【问题描述】:
就像早期 beta (dnx) 时期的 this question 一样,我正在尝试将代码移植到 .net core 1.0 rtm,并且代码回复了以下单元,其中包含 ValidationAttribute 类型和其他内容:
using System.ComponentModel.DataAnnotations;
namespace Hl7.Fhir.Introspection
{
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class FhirElementAttribute : ValidationAttribute
...
如何将此类代码移植到 dotnet core 1.0 rtm?
【问题讨论】:
标签: c# visual-studio-2015 data-annotations .net-core