Questions tagged as '.net'

1
answer

How to read an xml saved in sql Database

I need to be able to read all the data in each row to put them in a bootstrap-table , does anyone have any ideas? I have this code saved in a field in my sqlserver database: <xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xml...
asked by 02.04.2018 / 17:33
1
answer

How can I add elements to a .XML document?

I need to add nodes or elements to an .XML file saved in a location on my PC and I do not know how to do it ... for example in my file I have: <Empleado> <Nombre> <PrimerNombre>Efrain</PrimerNombre> <...
asked by 09.01.2018 / 20:49
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
3
answers

Use more than one constructor in a class?

Greetings. I have a class called employee. This class has the 4 basic objectives of a CRUD. I created a constructor that had the basic parameters of the table but not the primary key because it is identity and autoincrements. It happens that...
asked by 11.09.2017 / 23:14
1
answer

I can not compile Visual Studio 2017

I am working on a project with .NET and MVC and I can not compile my solution for each project I get this error:    C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ 15.0 \ Bin \ Roslyn \ Microsoft.CSharp.Core....
asked by 25.09.2017 / 19:24
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
2
answers

List all databases that contain a specific table

I want to list all the databases of a given server Sql Server (2008 or higher) that contain a certain table. I have seen several examples from cursors, stored procedures that run through the server databases to the use of sp_msforeachdb, which i...
asked by 22.02.2017 / 13:27
1
answer

Equivalent of request curl en visual .net

As they are, I am trying to use the watson service, which makes a post request to an url, and the curl code is the following, I would like to know how I could do the equivalent of this request in visual .net with visual basic of language. curl...
asked by 05.01.2017 / 11:50
2
answers

Solve cors problem in portal azure

I have an API to consume an uploaded service to my azure portal, but I have the following problems:    OPTIONS [ API path ] 404 (Not Found)    XMLHttpRequest can not load [ API Path ].   Response to preflight request does not pass acc...
asked by 04.04.2017 / 18:50
3
answers

Problem connecting from .net to Oracle with EF

I explain a little about the problem of my scenario, in my development machine I have ODAC 12 installed and can develop normal connections against Oracle, in my production server install the same Oracle but when trying to run my application.exe...
asked by 14.09.2016 / 19:57