EF Core Backing fields - expose property as another type?

Assume I have an EF entity class Person, with a PhoneNumber on it. PhoneNumber is stored as a string type, but I want all accesses on the Person to go through Phone which has some nice accessor funct...

16 May at 15:47

Is it possible for String.split() to return tuple?

I have `string` which I need to `split()` and assign it's value into two variables. Is it possible for `split()` to return `tuple` instead of `string[]` so I can do something like: ``` String myStrin...

9 Mar at 09:53

UWP: how to start an exe file that is located in specific directory?

I am trying to start an exe that is located in C:/Program Files (x86)/App from UWP app. How can I do this. I can start exe file by using Windows Desktop extension for UWP, add Hide Copy Code ``` ...

9 Mar at 08:18

How to show all columns' names on a large pandas dataframe?

I have a dataframe that consist of hundreds of columns, and I need to see all column names. What I did: ``` In[37]: data_all2.columns ``` The output is: ``` Out[37]: Index(['customer_id', 'incomi...

16 Jul at 15:2

Why can't a C# structure return a reference to its member field?

``` struct Foo { int i; public ref int I => ref i; } ``` This code raises compile error CS8170, but if `Foo` is a class, it doesn't. Why can a structure not return a member as a reference?

9 Mar at 18:14

ServiceStack alike request logger for WebForms

Is there a simple way of implementing something like this but in the old Web Forms app in order to track ALL incomming requests with all parameters as well. ``` Plugins.Add(new RequestLogsFeature ...

9 Mar at 01:21

Preset files are not allowed to export objects

I have a carousel file in which I want to get `index.js` and build `block.build.js`, so my `webpack.config.js` is: ``` var config = { entry: './index.js', output: { path: __dirname, filen...

5 Jun at 13:49

Customizing response serialization in ASP.NET Core MVC

Is it possible to customize the way types are serialized to the response in ASP.NET Core MVC? In my particular use case I've got a struct, `AccountId`, that simply wraps around a `Guid`: ``` public ...

8 Mar at 22:49

UWP FolderPicker.PickSingleFolderAsync fails with COMException / E_FAIL

In my UWP app I have the following code: ``` private async void testButton_Click(object sender, RoutedEventArgs e) { var picker = new Windows.Storage.Pickers.FolderPicker(); StorageFolder folder ...

8 Mar at 17:1

Flutter does not find android sdk

I just tried intalling flutter and since I already had android studio and the android sdk installed I just followed the installation of flutter. Here is my problem: When I run ``` flutter doctor ``` ...

Generate .dto.ts on build

As a part of a development process, we update .dto.ts often. But it turns out that sometimes api is changed and developer forgot to update .dto.ts before submitting pull request. Is it possible to upd...

8 Mar at 11:33

The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a .NET SDK that supports .NET Core 2.1

have tried upgrading to the professional version of visual studio 2017 v 15.6.0 (Preview 7.0) and installed aspnetcore-runtime-2.1.0-preview1-final-win-x64 and .net core SDK 2.1.4. When I created a ...

6 Oct at 15:26

How to mock UserManager in .Net Core testing?

I have following code. Im trying to running a test case for create user.Following is what i have tried so far. ``` public class CreateUserCommandHandlerTest { private Mock<UserManager<Applicatio...

Multiple versions of .NET on the same server

So I've always known it's okay to run multiple versions of the .NET framework on a single computer (client or server alike). [This question](https://stackoverflow.com/questions/407306/running-many-ver...

React : difference between <Route exact path="/" /> and <Route path="/" />

Can someone explain the difference between ``` <Route exact path="/" component={Home} /> ``` and ``` <Route path="/" component={Home} /> ``` I don't know the meaning of `exact`.

Function host is not running

I have a Function App in azure and when I hit the URL of the function app it says "Function host is not running." I am not sure where I have to check and what needs to be changed. I tried restart but ...

Set value of one Pandas column based on value in another column

I need to set the value of one column based on the value of another in a Pandas dataframe. This is the logic: ``` if df['c1'] == 'Value': df['c2'] = 10 else: df['c2'] = df['c3'] ``` I am unab...

Change C# language version to 7.2 in vs-code on Linux

I read that `.NET Core 2.0` SDK support `C# 7.2` by default but the features of `C# 7.1` and `7.2` are disabled and we have to enable them. I install both SDK and C# extension for vs-code, but when I ...

7 Mar at 18:58

Connect to Oracle database in dotnet mvc application

Oracle released a beta version [driver ODP for dotnet core 2](http://www.oracle.com/technetwork/topics/dotnet/downloads/odpnetcorebeta-4077982.html)(Finally!). But I can't make it work. Does anybody d...

7 Mar at 18:47

did you register the component correctly? For recursive components, make sure to provide the "name" option

I configured `'i-tab-pane': Tabpane` but report error,the code is bellow: ``` <template> <div class="page-common"> <i-tabs> <i-tab-pane label="wx"> content </i-tab-pane> ...

3 Oct at 01:18

Setting column order for CSVHelper

I am using CSVMapper to output the objects within a dictionary: ``` using (TextWriter writer = new StreamWriter($"somefile.csv")) { var csvDP = new CsvWriter(writer); ...

7 Mar at 12:57

Client certificate not getting added to the request (Certificate Verify)

I'm trying to do a simple `GET` request to an external production server with a client certificate. They have added our certificate to their server, and I have successfully made requests through Postm...

GenerateEmailConfirmationTokenAsync default expiration timespan

What is default expiration timespan of GenerateEmailConfirmationTokenAsync? and what kind of errors should I get from ConfirmEmailAsync? For ConfirmEmailAsync got Invalid token error. is there any ot...

Wire up MiniProfiler to ASP.NET Core Web API Swagger

I found only [this manual](http://www.lambdatwist.com/webapi-profiling-with-miniprofiler-swagger/) describing how to make MiniProfiler work with ASP.NET Web API and Swagger UI, but I didn't find any m...

What is the point of the in modifier for classes

C# 7.2 introduces the `in` modifier for parameters which makes perfect sense for structs and in particular for readonly structs. It is also allowed to use it for a reference type ``` void Method(in ...

7 Mar at 11:23