26353

ServiceStack.DataAnnotations missing attributes definitions?

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

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

Thanks

Answer1:

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

Recommend

  • How can I add web content type in liferay 6?
  • How to get a list with description of all dba packages
  • Load Same ACF Map Twice on Same Page
  • c++ using primitive types as a base class
  • File loader changed image file name but not the file name in HTML file
  • Is it better to use the “hidden” CSS attribute or fetch each set of new images?
  • How to concat Pandas dataframe columns
  • Using same constraints in multiple classes
  • C#: Import/Export Settings into/from a File
  • Dart - Isolate Cross Window Communication
  • Repository Browser Only - \"Repository moved permanently to… please relocate”
  • How can I restyle a word when rendering a pdf with pdf.js?
  • what makes a request a new request in asp.net C#
  • Cast between interfaces whose interface signatures are same
  • revitapi ironpython ToRoom returns “indexer # object”
  • Access variable of ScriptContext using Nashorn JavaScript Engine (Java 8)
  • Connect .sks to skscene.h
  • System.InvalidCastException: Specified cast is not valid
  • Debug.DrawLine not showing in the GameView
  • GridView breaks while scrolling
  • Jackson Parser: ignore deserializing for type mismatch
  • How to Cache Real-time Data?
  • How to use RequestBodyAdvice
  • Read a local file using javascript
  • C++ Partial template specialization - design simplification
  • Q promise. Difference between .when and .then
  • Javascript simulate pressing enter in input box
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • Incrementing object id automatically JS constructor (static method and variable)
  • Does CUDA 5 support STL or THRUST inside the device code?
  • When should I choose bucket sort over other sorting algorithms?
  • Hazelcast - OperationTimeoutException
  • To display the title for the current loaction in map in iphone
  • Akka Routing: Reply's send to router ends up as dead letters
  • AT Commands to Send SMS not working in Windows 8.1
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How do I configure my settings file to work with unit tests?
  • Is it possible to post an object from jquery to bottle.py?