2

我正在尝试使用 ServiceStack.DataAnnotations 中的 ServiceStack 属性装饰器,但是当我在 MSVS 对象浏览器中查看 ServiceStack.DataAnnotations 命名空间时,只有以下类型:

ComputeAttribute DecimalLengthAttribute IgnoreAttribute PrimaryKeyAttribute

我有最新的垃圾箱,我的所有参考资料都已签出。具体来说,我希望使用 [AutoIncrement] 和 [Index] 属性。

谢谢

4

1 回答 1

2

[AutoIncrement] 和 [Index] 属性位于无依赖关系的 ServiceStack.Interfaces.dll 中的 ServiceStack.Interfaces.DataAnnotations 命名空间中如果您使用 NuGet,您可以在ServiceStack.Common NuGet 包中找到该命名空间。

于 2012-07-08T01:49:03.060 回答