Questions tagged as 'c#'

2
answers

No Entity Framework provider found for ADO.NET provider [closed]

I am dividing my application in layers, I installed EF in the application layers and repository, in my view everything is correct, but I am having the following error:    No Entity Framework provider found for the ADO.NET provider with invari...
asked by 22.09.2015 / 18:53
1
answer

nHibernate with more than one database

Hello, I would like to know if it is possible to use nHibernate with more than one database, some tables will be in one bank and others in another. How would I do this? And in entity mappings, how would I report that mapping is from a tabl...
asked by 15.09.2015 / 15:23
3
answers

Start connection on SignalR

I'm creating a simple application for the purposes of studying SignalR with C # in VS2015. How do I start the connection without having to define a method on the client? I'm doing it this way: $.connection.hub.url = "http://localhost:8080/s...
asked by 15.09.2015 / 17:43
1
answer

Task.Run locking inside a "tick" (Forms.Timer)

In my application, I created a "Timer" (System.Windows.Forms) that runs every 1 second. In the "tick" event, I put a await Task.Run. For some reason the tick stops running after a while (because it does not print the date and time on the cons...
asked by 01.09.2015 / 21:55
1
answer

XmlTextReader.GetAttribute returns the null value

I made a base code in XML and I would like to import the attributes and values according to the code: <?xml version="1.0" encoding="UTF-8" ?> <!-- MAIN SCRIPT FILE FOR JAVA 7u80 MINECRAFT SERVER --> <params count="3"> <...
asked by 16.10.2015 / 19:13
1
answer

Convert String to Monetary Value in ASP.Net MVC

How to convert the result of a multiplication within a string to display as Real? The value of bol.ValorBoleto is loaded a little earlier. Data annotation : [DisplayFormat(ApplyFormatInEditMode = false, DataFormatString =...
asked by 18.08.2015 / 14:38
1
answer

Asp.NET MVC bind checkbox list with string value

I have a list of checkboxes and I need to bind values that are strings (@ item.SelectedValue) with my IEnumerable>. <div class="editor-field perfil-filtro-expander-todasAcoes"> <div class="metro perfil-filtro-expander-overflo...
asked by 21.08.2015 / 17:17
1
answer

MVC Dependency Injection

I'm using dependency injection to use Mock . I would like to know if I need to create an interface for my Model and another one for my Controller ? Thank you     
asked by 24.08.2015 / 18:20
2
answers

List with large number of items, excessive memory consumption

On my system I have a List<object> , while using the system I'm adding items in it until I get to a certain point where the system starts to slow down. My system may add up to forty thousand items in this list, I have never gotten to...
asked by 07.02.2016 / 03:13
2
answers

Template, relationship with DataAnnotations

If I have a Customers entity public class Cliente { public int ClienteId { get; set; } public string Email { get; set; } public string Nome { get; set; } } If I create a Boleto entity public class Boleto {...
asked by 03.02.2016 / 16:07