Why does Dapper need a reference to the transaction when executing a query?

Just looking through this tutorial: [https://www.davepaquette.com/archive/2019/02/06/managing-transactions-in-dapper.aspx](https://www.davepaquette.com/archive/2019/02/06/managing-transactions-in-dapp...

31 Oct at 10:2

Asp.net core keep using the expired certificate

Recently, my localhost certificate is expired, I have gone to "sertmgr.msc" remove all localhost certificate and restart the VS and add a new localhost certificate to windows. But when am I running my...

31 Oct at 03:29

System.TypeLoadException: Method 'Create' in type 'MySql.Data.EntityFrameworkCore.Query.Internal.MySQLSqlTranslatingExpressionVisitorFactory'

I'm trying to add a new user to the database with the following code: ``` public async void SeedUsers(){ int count=0; if(count>0){ return; } else{ string email="jujusaf...

Add comments to records - C# 9

I'm looking for a way to add comments on record properties, in C# 9 When I try this code : ``` public record Person { /// <summary> /// Gets the first name. /// </summary> public strin...

5 May at 17:44

ServiceStack: Async version of 'HostContext.AppHost.ExecuteMessage'?

[As answered here](https://stackoverflow.com/a/56672465/178143), its enough to return a Task to make a ServiceStack service method async. If I manually invoke a Service, as [described here](https://st...

30 Oct at 15:42

net 5.0 Cannot determine the frame size or a corrupted frame was received

I want to try net5.0 since it's in rc2, and I've encountered a strange issue. I've created a default WebApi in net5.0. I didn't touch anything, I just clicked run (in kestrel, not ISS) and the Swagger...

23 Apr at 08:20

ServiceStack RedisMqServer: No way to add or remove channels in runtime?

My, already "legacy" by now, implementation of a pub/sub solution using ServiceStack quickly ran out of clients, when it reached the 20 client limit. We do something like: ``` _redisConsumer = MqClien...

Strange NullReferenceException when using ServiceStack.OrmLite async API

I keep getting a NullReferenceException when using ServiceStack.ORMLite's async API. I don't really know where to go from here and I have to admit I'm going half insane What I know is that switching `...

Unable to resolve dependency tree error when installing npm packages

When trying to install the npm packages using `npm i` command, I am getting the following exception: [](https://i.stack.imgur.com/x8N3W.png) I have tried reinstalling the Node.js package and setting t...

11 Aug at 09:28

ServiceStack - how to add custom typescript decorators?

I'm generating typescript dtos via C# models under ServiceStack. I'm hoping to use [typestack/class-validator](https://github.com/typestack/class-validator) which operates by evaluating several decora...

28 Oct at 15:7

ServiceStack: Reinstate pipeline when invoking a Service manually?

As a follow-up to [this question](https://stackoverflow.com/questions/64560997/servicestack-messaging-api-can-it-make-a-broadcast), I wanted to understand how my invoking of a Service manually can be ...

10 Nov at 00:43

ServiceStack Messaging API: Can it make a broadcast?

As I have [previously](https://stackoverflow.com/questions/63441969/seeking-an-understanding-of-servicestack-redis-iredisclient-publishmessage-vs-i) [mentioned](https://stackoverflow.com/questions/634...

How to Polyfill node core modules in webpack 5

webpack 5 no longer do auto-polyfilling for node core modules. How to fix it please? > BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the...

25 Aug at 18:57

Using C# 9 records "with" expression can I copy and add to new derived instance?

Suppose I have the following: ``` public record Settings { public int Setting1 { get; init; } } public record MoreSettings : Settings { public string Setting2 { get; init; } } ... var settings ...

27 Oct at 15:14

Upload string to Azure Blob

I have had a look at this following code to upload a string to azure blob. my task requirement does not allow me to store the string as a file. ```csharp static void SaveTextAsBlob() { var s...

2 May at 02:46

Unity - communicating with clientside Javascript and ajax. How to pass data back to the webpage from unity?

What I am really asking is this; if there are dependencies which are impossible to compile into the unity build, is there a way of still calling them from within the unity and simply using the scripts...

26 Oct at 08:40

ServiceStack automatic dispose

I'm new to ServiceStack and I was trying to use it. I have a question to do: from the documentation I read that "". What does it mean? Below you can see my example code: in this case, I was trying to ...

25 Oct at 09:45

How to include ValidationError.CustomState in ResponseStatus.Meta?

I have the following code in one of my validators: ``` RuleFor(foo => foo) .Must(foo => foo != null) .WithState(bar => new { Baz, Qux }); ``` Then in my service I have this: `...

23 Oct at 07:38

The argument type 'Function' can't be assigned to the parameter type 'void Function()?' after null safety

I want to achieve to make a drawer with different items on it, so I am creating a separate file for the `DrawerItems` and the with the constructor, pass the data to the main file. But I get the follow...

31 Oct at 00:59

Java.Lang.NoSuchMethodError: 'No static method checkBuilderRequirement

After updating to Xamarin.Forms 4.8 i get this error when application starts: ``` Java.Lang.NoSuchMethodError: 'No static method checkBuilderRequirement(Ljava/lang/Object;Ljava/lang/Class;)V in class ...

19 Oct at 13:28

Found conflicts between different versions of "System.Runtime.CompilerServices.Unsafe" that could not be resolved

This may seem as one of many similar questions, but I could not find the solution in other questions. I will jump straight to the binary log: [](https://i.stack.imgur.com/5BNlX.png) And here is the re...

31 Oct at 01:41

C# 9 top-level programs without csproj?

One feature of coming C# 9 is so called top-level programs. So that you could just write the following without classes. ``` using System; Console.WriteLine("Hello World!"); ``` and `dotnet run` will...

21 Oct at 12:14

C# Create lambda over given method that injects first paramater

In C# I have following methods defined in given class (non static): ``` int MyMethod(ScriptEngine script, int a, int b) { return a + b; } void MyMethod2(ScriptEngine script, string c) { // do...

16 Oct at 08:27

Redis subscriptions realiblity and retry

Im using [ServiceStack.Redis](https://github.com/ServiceStack/ServiceStack.Redis) in my application and i have my subscribe method is this: ``` protected void Subscribe(string channelsToSubscribe) ...

14 Oct at 19:11

ERROR: JAVA_HOME is not set and no 'java' command could be found in your flutter PATH. In Flutter

I installed Android Studio 4.1 and tried to run the existing project. But it gives an error like this: ``` ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set th...

20 Mar at 16:34