ServiceStack.DataAnnotations缺少的属性定义? [英] ServiceStack.DataAnnotations missing attributes definitions?

查看:570
本文介绍了ServiceStack.DataAnnotations缺少的属性定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用ServiceStack的属性装饰从ServiceStack.DataAnnotations但是当我查看该MSVS对象浏览器中ServiceStack.DataAnnotations命名空间,只有以下几种类型:

I'm trying to use ServiceStack's attribute decorators from ServiceStack.DataAnnotations but when I view the ServiceStack.DataAnnotations namespace in the MSVS Object Browser, there are only the following types:

ComputeAttribute
DecimalLengthAttribute
IgnoreAttribute
PrimaryKeyAttribute

ComputeAttribute DecimalLengthAttribute IgnoreAttribute PrimaryKeyAttribute

我有最新的箱子和我所有的引用退房。具体来说,我正在寻找使用[自动序列号]和[索引] attribs。

I have the latest bins and all of my references check out. Specifically, I'm looking to use the [AutoIncrement] and [Index] attribs.

感谢

推荐答案

在[自动递增]和[索引]属性在<一个href=\"https://github.com/ServiceStack/ServiceStack/tree/master/src/ServiceStack.Interfaces/DataAnnotations\"相对=nofollow> ServiceStack.Interfaces.DataAnnotations 命名空间的依赖,自由的 ServiceStack.Interfaces.dll 这要是你使用的NuGet可以找到的 ServiceStack.Common的NuGet包

The [AutoIncrement] and [Index] attributes are in the ServiceStack.Interfaces.DataAnnotations namespace in the dependency-free ServiceStack.Interfaces.dll which if you're using NuGet you can find inside the ServiceStack.Common NuGet package.

这篇关于ServiceStack.DataAnnotations缺少的属性定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆