How to create a unique constraint with ServiceStack.OrmLite (using attributes, hopefully)? The documentation shows how to create a unique constraint for only one column:
ServiceStack.OrmLite Docs
If that helps, I use ServiceStack.OrmLite.SqlServer.
ServiceStack.OrmLite.SqlServer
Service Stack has a CompositeIndex attribute that accepts multiple field names. Look at the constructors here ...
CompositeIndexAttribute(params string[] fieldNames); CompositeIndexAttribute(bool unique, params string[] fieldNames);