How to pass a parameter to Vue @click event handler

I am creating a table using Vue.js and I want to define an `onClick` event for each row that passes `contactID`. Here is the code: ``` <tr v-for="item in items" class="static" v-bind:class="{'e...

24 Mar at 00:16

How to disable conventions in Microsoft.EntityFrameworkCore?

I'm using SQLite with EFCore, but I got a problem... how can I disable Conventions like Pluralize? Is it possible? My ModelBuilder has not a property Conventions... ``` protected override void OnMo...

20 Apr at 18:22

How can I get the baseurl of my site in ASP.NET Core?

Say my website is hosted in the folder of and I visit [https://www.example.com/mywebsite/home/about](https://www.example.com/mywebsite/home/about). How do I get the base url part in an MVC controll...

Third party exception handling hooks for ServiceStack Asp.NET Core?

I run the Exceptionless project and we have a few customers using ServiceStack and I had some questions and also recommendations for your error handling. Currently you guys don't flow the exception to...

20 Apr at 17:44

Append commas only if strings are not null or empty

I am creating simple webform in C#. Here I am getting full address by concatenating which works well. But let's say if I don't have `address2`, `city`, etc, then I want to skip appending commas at end...

27 Apr at 00:43

.NET Framework: Get Type from TypeInfo

The new reflection API introduces the `TypeInfo` class: [https://learn.microsoft.com/en-us/dotnet/api/system.reflection.typeinfo](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.typeinf...

28 Dec at 07:52

Creating instance of Entity Framework Context slows down under load

We noticed that some very small web service calls were taking much longer than we expected. We did some investigation and put some timers in place and we narrowed it down to creating an instance of ou...

Fatal error: Uncaught ArgumentCountError: Too few arguments to function

I know there was a some questions related to this, but there are in c++ or other languages. I get this error and I'm not sure what is wrong with my function. My error looks like this: ``` Fatal err...

20 Apr at 14:7

ServiceStack InMemoryVirtualPathProvider for Razor - GetViewPage null

I tested this with the default out of the box implementation and GetViewPage retrieves the view from the file system without a problem. I swapped out the RazorFormat's VirtualFileSource for the inmem...

20 Apr at 13:48

ServiceStack CsvRequestLogger could not read last entry exception

During the configuration of the AppHost, an exception is always thrown from ServiceStack.CsvRequestLogger.ReadLastEntry. Am I trying to construct the NLogFactory too early or do I have something in th...

20 Apr at 20:40

Is System.Net.Mail.SmtpClient obsolete in 4.7?

Few days back I visited a [blog](https://www.infoq.com/news/2017/04/MailKit-MimeKit-Official) that said `System.Net.Mail.SmtpClient` is obsolete and an open source library [MailKit](https://github.com...

4 Jun at 07:53

Getter and setter coming from different interfaces

I really need to have something like this: ``` interface IReadableVar { object Value { get; } } interface IWritableVar { object Value { set; } } interface IReadableWritableVar : IReadableVa...

23 May at 11:47

C# - Adding objects that implement interfaces to a dictionary

I have a dictionary: ``` private Dictionary<Type, IExample> examples; ``` I have two classes that implement the interface: ``` public class Example1 : IExample { } public class Example2 : IExampl...

20 Apr at 08:23

ngIf - Expression has changed after it was checked

I have a simple scenario, but just can't get it working! In my view I display some text in a box with limited height. The text is being fetched from the server, so the view updates when the text com...

20 Apr at 07:53

Cannot register GattCharacteristicNotificationTrigger Background Task after Creators Update

The background task registration code looks like this: ``` var builder = new BackgroundTaskBuilder(); builder.Name = name; builder.TaskEntryPoint = typeof(BackgroundTaskClass).FullName; var trigger =...

ServiceStack Render Razor Fails to Find View

This is a self hosted project. There is a `Views\Member.cshtml` file that is set to copy always as content. The following when run returns null for the `razorView`. I seem to be missing something h...

20 Apr at 00:53

ServiceStack IServiceGateway in Non Service/Non Controller and IOC

I have a console app with hangfire and service stack services into. Hangfire has its own IOC Adapter Implementations which has been integrated into a Funq adapter. I'm trying to use an IGatewayServi...

19 Apr at 21:35

Error: the entity type requires a primary key

I would like to expand the question asked on this thread [Binding listbox to observablecollection](https://stackoverflow.com/questions/43355477/binding-listbox-to-observablecollection) by giving it ...

11 Mar at 10:23

The ASPNETCoreModule which is required to host .NET Core projects in IIS does not appear to be installed

I've just installed `Visual Studio 2015` and have just created new `ASP.NET Core Web Application` project. When I run the `ASP.NET Core Web application` project I've met the following exception(I am j...

Target .NET Core Class Library From .NET Framework 4.6.2 Class Library

I have a library written using .NET Core, targetting .netstandard2.0. According to this [site](https://learn.microsoft.com/en-us/dotnet/articles/standard/library) it should be compatible to use the th...

17 Jul at 08:44

Avoid Entity Framework Error with Multiple Tasks Running Concurrently on Same DbContext

I have a WebApi controller in a Dotnet Core project running Entity Framework Core with Sqlite. This code in an action occationally produces errors: ``` var t1 = _dbContext.Awesome.FirstOrDefaultAsyn...

JAVA_HOME should point to a JDK not a JRE

I am trying to set up maven for my project and I am getting this error "JAVA_HOME should point to a JDK not a JRE" I know there are already similar question but it did not work. How can I point J...

13 Mar at 09:42

How to set a default value in react-select

I have an issue using react-select. I use redux form and I've made my react-select component compatible with redux form. Here is the code: ``` const MySelect = props => ( <Select {...prop...

29 Mar at 09:9

Object disposing in Xamarin.Forms

I'm looking for the right way to dispose objects in a Xamarin Forms application. Currently i'm using XAML and MVVM coding style. Then from my view model i get a reference to a disposable object throug...

16 Jul at 09:32

How to read configuration values from AppSettings and inject the configuration to instances of interface

Just recently, I have been trying out the new asp.net features and came across this issue. I know that we can read the configuration as strongly typed instance. but i have no idea how can i inject the...