Questions tagged as 'c#'

1
answer

Fill foreign key with primary key value

I'm doing an application with ASP.Net MVC and NHibernate, I have a business registration and a customer registration, where a company can have multiple clients. The classes are already mapped to the bank along with your relationship. Only the fo...
asked by 26.11.2014 / 20:20
1
answer

Add parameters to IDbCommand

I used the method below to add parameters using the interface IDbCommand using System; using System.Collections.Generic; using System.Linq; using System.Text; using EstudoDotNet.Comum.Dominio; using System.Data.S...
asked by 26.11.2014 / 23:55
2
answers

Effect (animation) on click on Windows Phone applications

I am creating an application for Windows Phone 8.1 , using the C # language. But my application is with "static" items and when clicking, it does not create that warping effect by showing that you selected something. Does anyone know how I ca...
asked by 28.11.2014 / 03:18
1
answer

Purpose of the lambda syntax in function / method

In some cases a function / method contains only one line in its scope, see the illustrative example: static int Soma(int a, int b) { return a + b; } However, the new feature in C # 6.0 which allows declaring a function / method in lam...
asked by 22.07.2016 / 19:31
1
answer

XSD.EXE Generating classes in C # - EFD Reinf v1_04_00

I'm trying to generate XSD.exe classes in C # from the Reinf XSD files:    EFD Reinf v1_04_00 link As follows: C:\Reinf\XSD>xsd evtInfoContribuinte-v1_04_00.xsd /classes XSD.exe returns error: Microsoft (R) Xml Schemas/Data...
asked by 04.12.2018 / 20:09
1
answer

How to import MDB file read and write in SQL

I'm trying to import an MDB file, read this file and write to SQL. I am already able to import the file and read, I just can not even get this data and write to SQL. If you notice the code I even managed to show the data in a List. Here is...
asked by 07.02.2014 / 12:33
2
answers

Scaffolding ASP.NET giving error

The error is generated using VS 2012. When I try to create the Controller for my News using the Entity framework, I have already tried in several ways. My database you can see on the server explorer on the left. I'm trying to create the contr...
asked by 06.02.2014 / 20:00
1
answer

Make SonarQube with OpenCover ignore some C #

Is it possible to configure SonarQube with OpenCover to skip some classes in my .NET project?     
asked by 06.02.2014 / 12:00
3
answers

Form opening another form inside a splitcontainer

I have a main form divided by a splitcontaniner . When I click on a panel1 button, a form is loaded into panel2 . private void btnCadastrarConta_Click(object sender, EventArgs e) { stcMenuPrincipal.Panel2.Con...
asked by 04.02.2014 / 16:55
1
answer

Entity - Infinite Loop in JSON conversion

What happens I'm having a problem using Entity with my MVC application. What happens is that when converting a class to JSON the program goes into an infinite loop and returns no-content Example Taking as an example the re...
asked by 29.11.2018 / 19:52