Questions tagged as 'asp.net-core'

2
answers

How in ASP.NET 5 is this property defined?

In ASP.NET 5 in the Configure method of the Startup class we can get a reference to an object whose class implements IHostingEnvironment in the parameters. One of the properties of this class is EnvironmentName . I hav...
asked by 24.02.2015 / 00:11
1
answer

Dependency injection in .NET Core

I am migrating a WebAPI project with .NET Framework 4.6 for .NET Core. In my project I use Unity to do Dependency Injection: var container = new UnityContainer(); DependencyResolver = new UnityDependencyResolver(container); container.Regist...
asked by 03.11.2017 / 22:09
3
answers

How to understand and deal with the cost of Azure? [closed]

I've known Azure for a long time, I read a lot and I saw several videos but I never used it. What I know about payment is that you only pay for what you use. It turns out that recently an acquaintance talked to me about a project he wants to...
asked by 22.08.2017 / 16:50
1
answer

.Net Core, Dapper and Visual Studio Code?

I'm trying to integrate Dapper with .Net Core but I'm not getting it and all the tutorials I found were done in Visual Studio using Nugget. So would anyone know how to do the Dapper import through Visual Studio Code?     
asked by 17.08.2017 / 22:38
1
answer

Other account information with facebook authentication

I am implementing facebook authentication and wanted to, when entering the application with the account data, also save full name, photo, among other data. Searching, I got the following code: facebookOptions.Events = new Microsoft.AspNet...
asked by 20.11.2017 / 23:56
2
answers

How to determine the search path of Controllers and Views?

I'm studying ASP.NET Core MVC on a MacOS. When I create a new project, the IDE automatically arrows my Views in a folder called "Home". If I change the name of this folder or change the Folder Views I get an error message when executing the p...
asked by 17.12.2017 / 06:12
1
answer

ASP.NET vNext is interpreted as neither PHP?

ASP.NET vNext is introducing a lot of new things to previous versions, among them is the idea of not compiling the codes, just modify and already see what happens on the page. Does this mean that ASP.NET will be interpreted in the same way that...
asked by 22.08.2014 / 16:09
1
answer

Entity Framework 7, Insert or Update

I've been looking for a method to check if an object exists on the base, if it exists, execute a update , if not, insert . I did not find anything that would answer me, so I made the following code: public static void InsertOrUp...
asked by 17.12.2017 / 23:32
0
answers

How to page a query in Azure Cosmos DB?

I'm trying to page a query in Azure Cosmos DB by reading this post: > Paging through query results in Azure DocumentDB , I got to the code: public async Task <ICollection <TEntity>> GetAllPaged(int page, string colleti...
asked by 30.08.2018 / 15:04
2
answers

ASP.NET vNext in Apache

I've heard enough that ASP.NET 5 will work not only in Windows but also Mac and Linux. I would like to know if you have how to run ASP.NET 5 applications on the Apache server. I researched a bit but I did not find anything recent talking about t...
asked by 25.12.2014 / 02:01