【发布时间】:2019-11-19 22:32:37
【问题描述】:
我想我应该移动我的类库以使用 .net 标准 2.1。
表属性不在 .net 标准 2.1 中吗?
using PWDRS.Core.Entities.Base;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PWDRS.Core.Entities
{
[Table("ReportType", Schema = "RF")]
public class RfReportType : EntityBase
{
public RfReportType()
{
}
类型或命名空间名称“DataAnnotations”不存在于 命名空间“System.ComponentModel”(您是否缺少程序集 参考?)
找不到类型或命名空间名称“TableAttribute”(是 您缺少 using 指令或程序集引用?)
找不到类型或命名空间名称“表”(您是否缺少 using 指令还是程序集引用?)
找不到类型或命名空间名称“架构”(您是 缺少 using 指令或程序集引用?)
【问题讨论】:
标签: c# .net-core entity-framework-core .net-standard