Questions tagged as '.net-core'

1
answer

How to use asp net core 2 in visual studio 2015 community?

I installed .NET Core 2.0, but when I create a new project in Visual Studio 2015 does not appear the option to choose asp net core 2.0. Is it possible to use the same in VS 2015?     
asked by 07.09.2017 / 16:08
1
answer

What class similar to AesCryptoServiceProvider in .NET Core?

I'm migrating an application to .net core and I need to use AesCryptoServiceProvider , which worked perfectly in other versions of the .NET Framework. However, when using Visual Studio .NET, Visual Studio warns that this library does no...
asked by 28.07.2017 / 12:46
1
answer

How do I reference the Entity Framework 6 from the .Net Core Class Library?

When installing the Entity Framework from Nuget I get the following error in your reference:    The dependency EntityFramework 6.1.3 does not support framework .NETCoreApp, Version = v1.6 How to work around this error? If anyone can help,...
asked by 15.02.2017 / 02:37
1
answer

returning blank autocomplete

I do a search in my database to search for product names without exceptions (I do not know if it's relevant, but this return is a string list) var listaDosProdutos = _servico.ObterNomeDosProdutos(); Then I take this list and do a search of...
asked by 26.11.2018 / 19:15
0
answers

"libhostpolicy.so" error while rotating Docker image for .net core 2.0 project console application

I'm creating a Docker image with an application .net core 2.0 console to function as a background service on the machine, however, when running the image in linux, the following error is displayed: A fatal error was encountered. The library 'l...
asked by 09.11.2018 / 20:36
0
answers

Phone Array Update in Database

I'm trying to update information in my database where I have 1:N between Clientes and Telefones , but I'm not able to perform such an update because sometimes it will be necessary to remove a phone that is in the database , s...
asked by 26.09.2018 / 20:08
0
answers

Two ViewModels in a View

I have a problem, let's explain: I have a page called Index where I render all clientes of my database in a table, in that table there is an delete button that opens a Modal de Confirmação that creates a Form with...
asked by 25.09.2018 / 15:16
1
answer

X.PagedList.Mvc with Core and Bootstrap 4.0

How to use X.PagedList.Mvc with Core and Bootstrap 4.0 , and thus create a full automatic page.     
asked by 24.09.2018 / 19:47
1
answer

Entity Framework Core 2 - Recursive search in many-to-many relationships

I made a many-to-many relationship using EF Core 2, Code First method. > in this link , you need to create a join entity: public class ClienteModel { public int ClienteId { get; set; } public string NomeEmpresa { get; set; } publ...
asked by 05.09.2018 / 01:08
0
answers

WEB API 2 works on localhost but not on server

I'm starting with .NET Web Api 2 using .Net Core . No Postman when I make the request on the localhost of my WebApi machine it returns a status of 200 ok, but when I do it on the server with the same WebApi it returns me 4...
asked by 04.09.2018 / 15:11