TypeScript interface signature for the onClick event in ReactJS
The official [reactjs.org](https://reactjs.org/tutorial/tutorial.html) website contains an excellent introductory tutorial. The tutorial snippets are written in JavaScript and I am trying to convert ...
- Modified
- 30 Jan at 04:0
ASP.NET Core API - ActionResult<T> vs async Task<T>
If I'm creating an API using .NET Core 2.1 with some typical POST and GET methods, which return type for those methods is most suitable, `ActionResult<T>` or `async Task<T>`? One of my friends uses th...
- Modified
- 30 Jan at 03:57
Is there a keyboard shortcut to maximize the Game window in Unity in Play Mode?
+ maximizes most windows in unity 2018 when in edit mode. Is there a keyboard shortcut to maximize the Game window when you're playing your game? Can't find anything in the docs.
How do I prevent Conda from activating the base environment by default?
I recently installed anaconda2 on my Mac. By default Conda is configured to activate the base environment when I open a fresh terminal session. I want access to the Conda commands (i.e. I want the pat...
Do we really need to implement IDisposable in Repository or UnitOfWork classes?
, let's see what Microsoft says about Asp.Net Core's default Dependency Injection services: > The framework takes on the responsibility of creating an instance of the dependency and disposing of it w...
- Modified
- 29 Jan at 20:2
Deserializing json integers to longs results in exceptions and null values, seemingly randomly
I have the weirdest problem that suddenly occurred: In some (many) cases, suddently, parsing a DTO that contains `long` fails, depending on the value of the `long`. Let's look what happening. I am us...
- Modified
- 2 Feb at 10:36
Command Failed: gradlew.bat installDebug error whenever installing dependencies like navigation, firebase, icons etc in React-Native
When ever i install any dependency in my react native project and when ever i use link command for e.g react-native link react-native-gesture-handler this causes me an error shown in the image [1]. It...
- Modified
- 16 Dec at 13:56
How to send multipart/form-data to ASP.NET Core Web API?
I'm trying to send a image and text fields to an API endpoint but I'm received > Unsupported content type 'multipart/form-data; boundary=---------------------------81801171514357 This is a ASP.NET Cor...
- Modified
- 11 Sep at 04:14
How to fix swagger.json not found in .net core 2.2 app
I'm deploying my .net core app on IIS server and facing the issue in swagger UI where swagger.json not found. When I run it locally (Development environment) everything is working perfectly but when I...
- Modified
- 17 Sep at 18:54
IOC injection of IServerSideEvents
I am writing unit tests for my IOC. One of my interfaces injects IServerEvents. I am including events via: ``` ServerEventsFeature serverEventsFeature = new ServerEventsFeature() { ...
- Modified
- 30 Jan at 10:54
EF Core with GraphQL
I'm currently exploring the GraphQL development and I'm currently exploring what kind of SQL queries are Generated via EF Core and I observed that no matter that my GraphQL query includes only a few f...
- Modified
- 27 Aug at 12:56
No suitable constructor found for entity type string
Yesterday I came her with a similar question about my own made entity type that head some errors. I fixed up these errors but now it throws one on entity type string and I have absolutely no clue how ...
- Modified
- 2 Nov at 12:30
ValueTuples lose their property names when serialized
While trying to serialize a named value tuple to JSON string, it loses the names assigned to items ``` (string type, string text) myTypes = ("A", "I am an animal"); var cnvValue = JsonConvert.Seriali...
- Modified
- 28 Jan at 08:47
c# asp.net core Bearer error="invalid_token"
Can someone please help me to solve this problem? I'm testing the API using Postman I'm following a tutorial about asp.net core. And I'm on its Authentication part now. I don't really understand whats...
- Modified
- 21 Feb at 17:7
Error: yarn start - error Command "start" not found
I am trying to learn React and I am using a private repo to start with it. I run `yarn start` in the directory of the repo but I get the error message: ``` yarn run v1.13.0 error Command "start" not...
How to download the latest build artifacts from Azure DevOps programmatically?
I have a .NET C# application and I would like to download the latest artifacts generated by the latest build of this public Azure DevOps project: [https://dev.azure.com/LumiaWoA/Boot%20Shim/_build?de...
- Modified
- 11 May at 13:57
Should Entity Framework lazy loading be disabled in web apps?
I've heard that you should disable the lazy loading feature of EF in web applications. (ASP.NET). [Here](https://wildermuth.com/2018/07/28/Avoid-Lazy-Loading-in-ASP-NET) and [here](https://ardalis.com...
- Modified
- 2 May at 03:35
Testing Batch SendAll ServiceStack
I am getting an error on SendAll in a unittest This works fine... ``` using (var service = HostContext.ResolveService<DeviceService>(authenticatedRequest)) { ...
- Modified
- 27 Jan at 17:33
Reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found
I try to open a Unity3D project with VSCode under Linux (Ubuntu 18.10). The omnisharp extension doesn't load the project, saying assemblies were not found. It may seems very stupide, but i'm not real...
Dynamically configure Http.BaseAddress for Client Side Blazor Deployment Environment
In this example, [Hosting Blazor][1], the author has a Blazor ClientSide App that calls Azure Functions. The author sets a Http.BaseAddress. Any thoughts on the best way to configure the Client Side B...
How to fix this strange error: "RuntimeError: CUDA error: out of memory"
I successfully trained the network but got this error during validation: > RuntimeError: CUDA error: out of memory
Why can't Microsoft analyzers find Microsoft.CodeAnalysis?
I'm trying to add [Microsoft.CodeAnalysis.FXCopAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/) (latest stable version) to my ASP.NET project. When I install it via Nu...
- Modified
- 25 Jan at 18:13
In EF Core, how to check whether a migration is needed or not?
I am using Entity Framework Core in an Xamarin.iOS application. In my core project that contains code (.netstandard 2.0) that is shared between the iOS application and other applications, I would li...
- Modified
- 25 Jan at 12:52
DbContextOptionsBuilder.EnableSensitiveDataLogging Doesn't Do Anything
I'm trying to track down the cause of an Entity Framework `InvalidOperationException` in an ASP.NET Core project. The exception suggests using `DbContextOptionsBuilder.EnableSensitiveDataLogging`. In...
- Modified
- 24 Jan at 19:40
How to use RouteDataRequestCultureProvider with ASP.NET Core 2.2 EndpointRouting enabled?
I am trying to use the `RouteDataRequestCultureProvider` in a new ASP.NET Core 2.2 MVC project. I've read the Microsoft documentation on [Routing in ASP.NET Core](https://learn.microsoft.com/en-us/as...
- Modified
- 24 Apr at 14:41