Questions tagged as 'c#'

1
answer

Contexts unique to authenticated users

Using the method recommended by @Gigano in this response ( Is it possible to leave connectionString dynamically? ), I was able to get a dynamic connection, and using the idea of mapping a context with the user data as the name of the bank, host,...
asked by 01.11.2016 / 19:18
1
answer

AutoMapper Entities ViewModel

I have a scenario where my context returns a query for two User and CardCreditoUsuario entities, according to the following scenario below. During automapper action in my ViewModel, it is not mapping the entity CardCreditoUsuario for its prope...
asked by 01.12.2016 / 22:42
0
answers

'The underlying provider failed on Open' C # ASP.net [closed]

I have an application that has 4 layers, which are as follows: Dominio, Infra, Servico, Web in the domain I have a folder named Poco with all my Classes/Tabelas , in Layer Infra , to test CodeFirst eu I created a...
asked by 21.10.2016 / 18:15
1
answer

Return PartialView with validations for an ASP Modal MVC 4

I have an Index screen, where is the table of registered people, on the same screen I have a new button that calls a Modal (boostrap) like this: <a href="@Url.Action("Add", "Pessoa", new { area = "Gestor" })" class="btn btn-primary" data-to...
asked by 21.05.2015 / 02:01
1
answer

Template MVC 5 or other: initial form of users, information, database

The templates that come in VS2013 or any other version when starting a project, it builds a menu with: Home , Contact >, Register and Login . I ask: How does it save the information for the new default user records? Where is it stored?...
asked by 22.05.2015 / 15:20
1
answer

How to do authentication in MVC application with linq?

I have a project in ASP.Net MVC and I am putting the authentification manually. Everything is going well, but I used as a reference an already ready project that uses the EntityFramework, but I want to use linq for my operations. The problem is...
asked by 28.05.2015 / 13:53
1
answer

How is Polly Fallback working?

I'm trying to understand how Polly Fallback works, but I'm not getting the implementation right. As I understand it, it performs another action if the first fails, but that is not what is happening. using System; using System.Collections....
asked by 13.07.2017 / 15:10
1
answer

Can a list of a type not be a list of its 'top' type?

There are some entities in the application I'm developing that need to be sorted by a predefined routine. Thinking about this has created a contract class called ElementoOrdenavel and all entities that can be ordered inherit from thi...
asked by 21.06.2017 / 21:05
1
answer

The 'OraOLEDB.Oracle' provider is not registered on the local machine

I have a problem that is limiting my work, this is the following, I created a WebService with a connection string for a database in oracle: OleDbConnection con = new OleDbConnection("Provider=OraOLEDB.Oracle.1;Persist Security Info=Fa...
asked by 27.06.2017 / 15:37
1
answer

Detect proxy setting on webrequest

Good afternoon my dear, I need to make a request for an api that is in a domain outside the local network, I do this through a webrequest that was created this way: WebRequest myWebRequest = WebRequest.Create("urldestino"); However, the net...
asked by 21.07.2017 / 22:33