Questions tagged as 'asp.net-core'

4
answers

Put comments in JSON file in Visual Studio 2015

I am experimenting with the new Visual Studio and I see that in the new project structure and in the configuration the files JSON is used intensively, to the detriment of the XML that was used before in web.config , e...
asked by 09.12.2015 / 12:11
1
answer

How to insert records in different tables with EF core in asp.net core2?

I have three tables, one of users that relates one to many with a table, and that one is related to the table phone_type, my calendar table has the id_agenda, user_id, phone_type_id, phone. When I create my model I only have the properties of my...
asked by 31.01.2018 / 23:21
1
answer

"Session has not been configured for this application or request" in AspNet Asynchronous driver vNext

Greetings, I appreciate help with the next issue that is already killing my head. Using AspNet vNext (1.0.0-rc1-update1) I have had problems accessing session data from a controller for WebApi. Randomly (sometimes, sometimes not), this e...
asked by 09.03.2016 / 01:21
1
answer

Scaffolding with Asp.net 5

I have been working recently with asp.net 5, in addition to the new features it has and the improvements it makes I can not find the way to do scaffolding as it was done in asp.net 4. Is there a functional and stable add-on for an asp.net 5 p...
asked by 02.12.2015 / 16:57
1
answer

Sessions in ASP .NET Core 1.0 and ASP .NET MVC 4

I am doing a series of tests in ASP.NET MVC Core 1.0 to see if it is convenient to migrate the project from MVC 4 to MVC Core 1.0 many of the errors that came out are already fixed. I have problems passing the parameters that contain sesio...
asked by 30.06.2016 / 01:38
1
answer

Database .NET Core Reverse Proxy

Currently, for entertainment, I am setting up a .NET Core server on a raspberry pi 3 with raspbian. So far I have not had many problems and I have a kestrel + apache server with reverse proxy. My problem comes when I want to add a database. I...
asked by 13.03.2018 / 18:18
1
answer

How do I create service contracts in webapi

I'm doing an API in .Net Core 2.0 and I need to know how to create a service contract based on the SOA Contract Centralization link    In WCF, the WSDL is created and the classes are marked with [ServiceContract] and   [DataContract] Is...
asked by 16.05.2018 / 07:29
1
answer

How can I occupy a model several times in asp.net core?

What happens is that I create a model of each table in my sql server database and a context of all tables with Scaffold-DbContext "my string" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Context TrabajoContext, After I occupy only...
asked by 23.01.2018 / 23:35
2
answers

Deliver JSON nested in WebAPI .net core

I need to deliver a JSON that has a TimelineItem where each timelineitem corresponds to a user. User class public class User { public int Id { get; set; } public string Name { get; set; } } Class timelineitem public cla...
asked by 19.12.2017 / 19:12
1
answer

With asp.net core mvc and full .NET Framework 4.7 hosting

If I develop a website with ASP.NET Core and full .NET Framework 4.7 , if I want to display it, the hosting must support net core and .NET Framework 4.7 or only .NET Framework ?     
asked by 04.08.2017 / 16:38