ServiceStack OrmLite: .Save/SaveAsync generates Duplicate entry on PRIMARY key
I was under the impression that the OrmLite Save method did an "upsert", update if record/row exist, otherwise insert. In the [documentation for ServiceStack OrmLite](https://github.com/ServiceStack/S...
- Modified
- 21 Nov at 09:56
.NET Core 3.1 v .NET 6.0
I got all excited on the release of Visual Studio 2022, C# 10 and .NET 6.0 and downloaded and installed the community edition and tested a project I am working on. I changed the target framework to 6....
- Modified
- 20 Nov at 20:14
Custom name for RegisterHandler lists - RedisMqServer / IMessageQueueClient
We are using IMessageQueueClient to push messages onto a Redis queue and pick them up via the registerhandler method. [https://docs.servicestack.net/redis-mq#redis](https://docs.servicestack.net/redis...
- Modified
- 19 Nov at 15:59
ServiceStack IRedisClient ScanAllKeys with a pattern does not return results as expected (ServiceStack 5.7.0)
I have tried the following code with and without the '*' wildcard using IRedisClient from StackService.Redis. It does not return the list of keys that match a pattern as I expected. I am trying to sea...
- Modified
- 18 Nov at 21:40
Display of => and == operators in Viusal Studio 2022
In Visual Studio 2022, some operators like == and => are shown in a special way: [](https://i.stack.imgur.com/XTiYl.png) I'd rather turn that off but I haven't found a way to do it.
- Modified
- 6 Jul at 10:40
Visual Studio 2022 turn off grey suggestions
How does one turn off grey suggestions in Visual Studio 2022, but keep the table below? ![Grey suggestions](https://i.stack.imgur.com/TQL76.png)
- Modified
- 17 Nov at 21:57
Is there a difference between "!=" and "is not" in C#?
Is this: ``` if(x != y) { } ``` different from this: ``` if (x is not y) { } ``` Or are there no differences between the two conditions?
- Modified
- 20 Nov at 17:36
How to disable new AI-based IntelliCode in VS 2022?
On the surface the new AI-based IntelliCode for Visual Studio 2022 seems cool. So when I installed VS2022 and it asked if I wanted to allow training models on my code, I said sure because I wanted to ...
- Modified
- 17 Nov at 16:0
ServiceStack.Text \ ServiceStack.SSE serialization problem
We are using ServiceStack SSE, as RedisSentEvents, ServiceStack version is 5.8 Sometimes the SSE client receives an Invalid JSON on the other side, and sometimes we get an exception. Most of the times...
- Modified
- 17 Nov at 14:42
Can I add a reference to a .NET Framework DLL from a .NET 6 project?
Microsoft recently announced .Net 6.0 as major version. I didn't find any reference where we can use older .NET framework (> 4.7.*) references in .net 6.0 project? Say, a .NET 6 project will have dll...
servicestack VueJS Compile failure
[enter image description here](https://i.stack.imgur.com/Fvnb3.png) After installing Vuejs in the servicestack then run the project it shows error like this.kindly give a solutions
- Modified
- 17 Nov at 10:24
How can I use a file-scoped namespace declaration in a class template?
C# 10 introduced [file-scoped namespaces](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/file-scoped-namespaces), which I would like to use in Visual Studio's...
- Modified
- 17 Nov at 20:7
Deps File Missing for Dotnet 6 Integration Tests
Before I start, I've tried all suggestions from the following and none work: [Integration testing ASP.NET Core with .NET Framework - can't find deps.json](https://stackoverflow.com/questions/55131379/...
- Modified
- 16 Nov at 15:34
How to use C#10 in Visual Studio 2019
How can I use C# 10 in Visual Studio 2019? I have latest update (16.11.6) and when I try to make a new project (need NET Standard 2.0, for compatibility with 4.7.2) and change it to C#10 ``` <Project ...
- Modified
- 16 Nov at 12:57
How to not use DeveloperExceptionPageMiddleware
When using the new template for ASP.NET Core 6.0, which includes `var builder = WebApplication.CreateBuilder(args);` the DeveloperExceptionPageMiddleware is automatically added. I would like to not us...
- Modified
- 6 May at 05:41
ServiceStack 5.13.0 metadata and swagger-ui pages return a 500 error after .NET 6 migration
I've recently started migrating my microservices to .NET 6. I upgraded to ServiceStack 5.13.0 from 5.11.0 and I found out that both the /metadata and the /swagger-ui (from ServiceStack.Api.OpenApi pac...
- Modified
- 15 Nov at 14:11
'IServiceCollection' does not contain a definition for 'Configuration' even though IntelliSense suggests otherwise
I am having a strange problem here. I created a Worker project in order to create a Windows Service in .NET 6 following [this documentation](https://learn.microsoft.com/en-us/dotnet/core/extensions/wi...
- Modified
- 15 Nov at 08:25
.NET6 and DateTime problem. Cannot write DateTime with Kind=UTC to PostgreSQL type 'timestamp without time zone'
I have common problem. > Cannot write DateTime with Kind=UTC to PostgreSQL type 'timestamp without time zone' And I want to enable Legacy Timestamp behavoour as is documented here: [https://github.com...
How to disable Browser Link in ASP.NET Core (.NET 6, VS 2022)
I have disabled Browser Link inside Visual Studio 2022, and I have also disabled all the Hot Reload functionality. [](https://i.stack.imgur.com/0KgN3.png) [](https://i.stack.imgur.com/SmZuJ.png) Even ...
- Modified
- 13 Nov at 07:50
When to use Microsoft.Data.SqlClient.SqlException vs System.Data.SqlClient.SqlException?
I understand that around [2019 Microsoft created Microsoft.Data.SqlClient](https://devblogs.microsoft.com/dotnet/introducing-the-new-microsoftdatasqlclient/) as their replacement for System.Data.SqlCl...
- Modified
- 12 Nov at 10:42
How to get ILoggerFactory in .net 6
In .Net5 ILoggerFactory is used as Configure function in Startup.cs as follows : ``` public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) { //here ...
- Modified
- 12 Nov at 05:38
How to fix Visual Studio 2022 Warning CA1416 "Call site reachable by all platforms" but "only supported on: 'windows'"?
So I have a C# class library project that I only intend to use on Windows. It contains some classes that use the `System.Drawing.Image` class which is only available on Windows. After upgrading to Vi...
- Modified
- 13 Apr at 20:29
Publish error: Found multiple publish output files with the same relative path
When I publish my ABP project I get the following error: ``` C:\Program Files\dotnet\sdk\6.0.100-rc.1.21458.32\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5): error NET...
Visual Studio 2022 Snippets not working for C#
I did a fresh install of Visual Studio 2022 v17.0.0 (.NET 6.0) and created a new WebAssembly project. Tried editing Counter component but none of the snippets work for C#. Typing is supposed to bring...
- Modified
- 10 Nov at 18:57
ServiceStack OpenAPI and Postman: Get the request 'Example value' in the output to import into Postman
Is there a way to get ServiceStacks PostmanFeature to also export the 'Example value', that can be seen in the Swagger-UI, so that when I use Postman to import the spec, I also get the example value i...
- Modified
- 11 Nov at 06:52