Questions tagged as 'c#'

1
answer

How to take a Domain Entity method to higher layers

Hello, I have the following domain entity. public class Cliente{ [Key] public string CPF{get; set;} public string Nome{get; set;} //Outras propriedades public void Sacar(Conta conta, decimal valor){ conta.Saldo -...
asked by 28.09.2015 / 02:36
1
answer

How can I generate a delay while running an application in Unity?

I am creating an application in Unity and need some function that causes a delay during the execution of the application.     
asked by 29.09.2015 / 03:26
0
answers

Many Relationship to Many Entity Framework Code First Composite Primary Keys Repeated Column

In my application I have two entities with a many-to-many relationship, namely Activity and Skill : EF(CodeFirst)generatesthejointableforme,butitisconflictingifIcreatethemappingathandinOnModelCreatingbecauseIhavethesamecolumn(CLIENT_ID)in...
asked by 16.02.2017 / 11:58
2
answers

What is the IL code and where can I find this code?

In my question about static constructors user bigown showed how the code generated from a static constructor is by .NET, this code is called IL Code according to its response . See the IL code of my question: .class private auto ansi '...
asked by 04.07.2016 / 02:09
0
answers

How to list data with inner join with mvc 5, c #, dapper, and sql server?

I have the following difficulties: 1 - View data from a select with inner join. The fields in the other tables do not all appear in the select, and those that appear have a value of zero (0). 2 - Write the data in the database. Even if you...
asked by 19.11.2016 / 01:13
0
answers

How to use PostgreSQL with Entity Framework? [closed]

I have a system that I'm developing in C # WPF using PostgreSQL as DBMS and wanted to use this same database for my ASP.NET MVC application. Is it possible to have the Entity Framework have access to the data that is in the PostgreSQL DBMS to...
asked by 17.02.2017 / 00:24
1
answer

AjaxPro not accessible in IIS

I have a simple application with WebForms, I have created some methods that I will access through Ajax via AjaxPro DLL. I used the [AjaxPro.AjaxNamespace("Teste")] attribute on the class and the [AjaxPro.AjaxMethod] on the metho...
asked by 16.11.2016 / 18:13
0
answers

Dynamic input reading in C #

I'm developing a solution in Winforms C # that receives a text file via network, via HttpWebRequest : HttpWebRequest request = (HttpWebRequest)WebRequest.Create(conexao + "/piece.txt"); request.KeepAlive = false;...
asked by 03.11.2016 / 13:23
0
answers

Calculation in parallel using GeForce Cuda

I have the following method that calculates the PI value serially: public static double CalculoPISerie() { double integral = 0; double h = 1.0 / NUMERO; for (int i = 0; i <= NUMERO; i++)...
asked by 12.11.2016 / 00:26
0
answers

Scheduling form with several items that need to be rented at the same time

I need to make an appointment book: Scheduling information Sign multiple instruments at once with scheduling information The Buscar cliente button pulls the data (Customer ID and Name) from a customer master table, as well...
asked by 25.10.2016 / 14:38