tagged [servicestack]

Service Stack Licensing

Service Stack Licensing I just noticed this commit: 6dbc2fae4dac29c891a67d09aa36ea7426a48051 [https://github.com/ServiceStack/ServiceStack.Text/commit/6dbc2fae4dac29c891a67d09aa36ea7426a48051](https:/...

4 Nov at 12:50

One time json serialization with type info in ServiceStack

One time json serialization with type info in ServiceStack We can set serialization settings via JsConfig in ServiceStack. But we want to user Json serializing without "Type Info" except one place. So...

11 Mar at 11:58

ServiceStack Cookie not setting in browser

ServiceStack Cookie not setting in browser I have an application with Razor Enabled and a service like this: ``` public object Post(SelectTerminalRequest request) { var location = base.Request.Absol...

ServiceStack OrmLite Command Timeout

ServiceStack OrmLite Command Timeout When using IDbConnection.ExecuteSql how do I set the Command Timeout? If I use the IDbCommand.ExecuteSql ( See below ) method I can set the Command Timeout, but I ...

How to Create Unique Constraint with Multiple Columns using ServiceStack.OrmLite?

How to Create Unique Constraint with Multiple Columns using ServiceStack.OrmLite? How does one create a unique constraint with ServiceStack.OrmLite (using attributes, hopefully)? The documentation sho...

15 Feb at 18:48

Composite Index In Servicestack.Ormlite

Composite Index In Servicestack.Ormlite Is there a way to create a composite non-unique index in Servicestack's implementation of Ormlite? For example, a single index that would cover both Field1 and ...

18 Mar at 15:32

Adding ServiceStack OrmLite attributes in code instead of a property

Adding ServiceStack OrmLite attributes in code instead of a property Does ServiceStack.OrmLite support attributes using Linq like in EntityFramework? Instead of decorating every property with [Primary...

Does ServiceStack.OrmLite load Views from Sql Server?

Does ServiceStack.OrmLite load Views from Sql Server? Does `ServiceStack.OrmLite` load `Views` from `Sql Server`? [https://github.com/ServiceStack/ServiceStack.OrmLite](https://github.com/ServiceStack...

8 Jul at 01:12

getting rid of the timezone part in servicestack.text json de/serialization?

getting rid of the timezone part in servicestack.text json de/serialization? Do you guys know how to eleminate the TimeZone part from servicestack.text JsonSerializer's result? It's currently like > 2...

How to use InsertOnly method in OrmLite?

How to use InsertOnly method in OrmLite? Following this example, how is the correspondent for the method InsertOnly? ``` var updated = await dbCon.UpdateOnlyAsync(timesheet, onlyFields: x => new...

23 Mar at 20:26

Authenticating user with Facebook using Servicestack (Java & Swift)

Authenticating user with Facebook using Servicestack (Java & Swift) I'm using servicestack client in my Android(Java) and iOS(Swift) applications but I need to authenticate users with facebook and goo...

24 Mar at 22:40

ServiceStack OpenAPI TagAttribute

ServiceStack OpenAPI TagAttribute Does anyone know where ServiceStack is referencing `TagAttribute` from. According to ServiceStack's OpenAPI documentation a route can be marked as `[Tag("Core Request...

15 Jun at 00:12

ServiceStack.Redis Service availability

ServiceStack.Redis Service availability I am trying to figure out how check the availability of the Redis Client. The simple action of calling the client, will give me this information? Is there a bet...

Is there a way to apply row level security in servicestack?

Is there a way to apply row level security in servicestack? Is there a way to apply a light weight row level security. In essence I want to apply ``` OrmLiteConfig.SqlExpressionSelectFilter = q => ...

15 Feb at 10:3

servicestack and ormlite database auto generation

servicestack and ormlite database auto generation In [servicestack](https://github.com/ServiceStack/ServiceStack) and [ormlite](https://github.com/ServiceStack/ServiceStack.OrmLite) How do you auto ge...

Servicestack orm lite does not deserialize neasted json structures

Servicestack orm lite does not deserialize neasted json structures I have a pgsql view which returns list of records. One field of record is represented as json and deserialised to property `List Clas...

ServiceStack return custom response when can't deserialize request

ServiceStack return custom response when can't deserialize request I'm using servicestack to handle xml request from client, my client require always send response like that: How can I response with t...

How do I return an empty JSON object for methods of return type void?

How do I return an empty JSON object for methods of return type void? ## Requirement: I am looking for a way to return an empty JSON object (such as `{}`) when the return type of my ServiceStack servi...

Autoquery servicestack ILeftJoin issue with table.id column

Autoquery servicestack ILeftJoin issue with table.id column I have definition of autoquery dto defined as below: ``` [Route("/project/{ProjectId}/contracts/{ContractId}/items")] public class QueryCo...

ServiceStack ORMLite JSON Deserialization multiple levels

ServiceStack ORMLite JSON Deserialization multiple levels I've got a class containing a Dictionary like this: I put data on multiple levels into here, such as: Then I .Save() it with OrmLite, which is...

ServiceStack AutoQuery Send Filter's Manually

ServiceStack AutoQuery Send Filter's Manually We are trying to use the JsonServiceClient to manually construct autoquery requests. The code is pretty simple for most operations but I don't see how fil...

map field types in Servicestack.OrmLite

map field types in Servicestack.OrmLite Lets say I have a field in the DB with possible values 'Y', 'N', NULL. I want to represent it in my DTO with a boolean property ('N', NULL -> false, 'Y' - > tru...

ServiceStack Funq RequestScope

ServiceStack Funq RequestScope If I register a type with `RequestScope.Request`, and then I autowire it in a service, I know the object's lifetime scope will be respected. Will this also hold true if ...

2 Feb at 21:37

Turn off GET Access to ServiceStack Custom Credentials Provider

Turn off GET Access to ServiceStack Custom Credentials Provider I know I ran across a post at some point, but I can't seem to find anything. It seems that by default, ServiceStack allows access to /au...

24 May at 20:24

ServiceStack 4.0.30 - CredentialsAuthProvider - Not Setting 401 Status on Failed Authentication

ServiceStack 4.0.30 - CredentialsAuthProvider - Not Setting 401 Status on Failed Authentication I just updated to 4.0.30 and noticed that /auth?username=xxxx&password=xxxx returns a 200 status regardl...

19 Aug at 19:53