ORMLite Service stack Self reference tables
I have a class of companies and sub companies. These can be nested to any level and displayed in a treeview. I am trying to figure out how to do a self reference in ormlite to build out a hierarchy us...
- Modified
- 11 Dec at 15:20
How to create a LoggerFactory with a ConsoleLoggerProvider?
The [ConsoleLoggerProvider](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.console.consoleloggerprovider) has four constructors: 1. ConsoleLoggerProvider(IConsoleLoggerSet...
- Modified
- 7 Oct at 10:44
Why ServiceStack.Redis does not use SET Timeout for acquiring lock?
if you look at the code of [RedisLock.cs](https://github.com/ServiceStack/ServiceStack.Redis/blob/master/src/ServiceStack.Redis/RedisLock.cs) class you can see that it is reading the lock value to val...
- Modified
- 9 Dec at 09:11
What is the type of the 'children' prop?
I have a very simple functional component as follows: ``` import * as React from 'react'; export interface AuxProps { children: React.ReactNode } const aux = (props: AuxProps) => props.chil...
- Modified
- 13 Oct at 08:51
ServiceStack Http Util - GetJsonFromUrlAsync terminates program abruptly
Using the ServiceStack Http Util extension methods, and following the exact instructions [found here](https://github.com/ServiceStack/ServiceStack/wiki/Http-Utils), invoking: ``` var result = await u...
- Modified
- 8 Dec at 19:55
What is the difference between the nuget packages hangfire.aspnetcore and hangfire and hangfire.core?
What is the difference between the `nuget` packages [HangFire.AspNetCore](https://www.nuget.org/packages/Hangfire.AspNetCore/) and [HangFire](https://www.nuget.org/packages/Hangfire/) and [HangFire.co...
- Modified
- 8 Dec at 13:58
How to point Go module dependency in go.mod to a latest commit in a repo?
Starting with v1.11 Go added support for modules. Commands ``` go mod init <package name> go build ``` would generate `go.mod` and `go.sum` files that contain all found versions for the package dep...
How to fix "The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time" error
I've already enabled CORS on the project in C# .net Core In `startup.cs` I've added lines ``` ... services.AddCors(); ... app.UseCors(builder => builder .AllowAnyOrigin() .AllowAnyMethod() ...
How to get build and version number of Flutter app
I am currently developing an application which is currently in beta mode. Due to this, I would like to show them what version they are on. For example, "v1.0b10 - iOS". So far, I have got this code: `...
Referencing ApplicationUser in the Infrastructure library from an entity in the ApplicationCore library using Clean Architecture
I am following the [Microsoft Architecture Guide](https://dotnet.microsoft.com/learn/web/aspnet-architecture) for creating an ASP.NET Core Web Application. The guide implements the clean architecture...
- Modified
- 7 Dec at 05:16
Add additional types to DTO
I have a few classes on backend that I am not using in any DTOs but I would like to export to my DTO typescript file. I tried adding them to `IncludeTypes` field but then only those types explicitly ...
- Modified
- 7 Dec at 03:22
Empty href after upgrading to asp.net core 2.2
We have built an ASP.NET Core 2.1 website where URLs like [www.example.org/uk](http://www.example.org/uk) and [www.example.org/de](http://www.example.org/de) determine what `resx` file and content to ...
- Modified
- 2 Jul at 10:40
I can't install react using npx create-react-app?
I am trying to use npx create-react app but i have errors that is shown below: ``` npm ERR! Unexpected end of Json input while parsing near '...eact-app/-/create-rea' npm ERR! A complete log of this...
- Modified
- 12 Mar at 08:27
Do I need "transactionScope.Complete();"?
As far as I understand, the "correct" way to use a `TransactionScope` is to always call `transactionScope.Complete();` before exiting the `using` block. Like this: ``` using (TransactionScope transac...
- Modified
- 6 Dec at 18:21
Running Selenium with Headless Chrome Webdriver
So I'm trying some stuff out with selenium and I really want it to be quick. So my thought is that running it with headless chrome would make my script faster. First is that assumption correct, or d...
- Modified
- 6 Dec at 18:0
how to implement google login in .net core without an entityframework provider
I am implementing Google login for my .net core site. In this code ``` var properties = signInManager.ConfigureExternalAuthenticationProperties("Google", redirectUrl); return new ChallengeResu...
- Modified
- 10 Dec at 22:46
C# AES Encryption Byte Array
I want to encrypt byte array. So first I try it in [this site](http://extranet.cryptomathic.com/aescalc/index?key=00000000000000000000000000000000&iv=00000000000000000000000000000000&input=1EA0353A7D2...
- Modified
- 6 Dec at 14:49
IAsyncEnumerable not working in C# 8.0 preview
I was playing around with C# 8.0 preview and can't get `IAsyncEnumerable` to work. I tried the following ``` public static async IAsyncEnumerable<int> Get() { for(int i=0; i<10; i++) { ...
- Modified
- 6 Dec at 13:8
Pandas Merging 101
- `INNER``LEFT``RIGHT``FULL``OUTER``JOIN`- - - - - - `merge``join``concat``update` ... and more. I've seen these recurring questions asking about various facets of the pandas merge functionality. Most...
- Modified
- 31 Jul at 17:38
Converting SQL to LINQ to hit database once
How can I convert the following T-SQL query to LINQ? ``` SELECT * FROM "VwBusinessUnits" WHERE "BusinessUnitName" in ( SELECT DISTINCT TOP 10 "BusinessUnitName" ...
- Modified
- 11 Dec at 02:35
Use Visual Studio 2017 with .Net Core SDK 3.0
How Can I open `.Net Core 3.0` project in Visual Studio 2017? I have downloaded the .NET Core 3.0 SDK from [dotnet.microsoft.com](https://dotnet.microsoft.com/download) and created new project with `...
- Modified
- 3 Apr at 04:34
Install .NET Framework 4.7.2 (if needed) with WIX installer
Help! I've inherited a .NET project with a WIX installer project. They make the implicit assumption that .NET Framework 4.5 is installed on each machine which for the most part is true. Now we are a...
What is limiting the port range for HTTPS in .NET Core 2.2?
In the I have the following. It works and I can access Swagger and the rest of the page using [https://localhost:44300](https://localhost:44300). ``` { ... "iisSettings": { "windowsAuthenticat...
- Modified
- 7 Dec at 21:17
Could not load file or assembly When Net Framework reference a Net Standard Library
I am very new to netstandard and I just encountered exception when I want to run a debug mode a .Net Framework (console) which has reference to a netstandard library. [](https://i.stack.imgur.com/tNJ...
Re-enable title bar in Visual Studio 2019
I've downloaded the preview version of Visual Studio 2019 and the title bar is disabled by default. This doesn't work for me as I currently develop C# applications using multiple instances of visual ...
- Modified
- 3 Apr at 11:4