Questions tagged as 'c#'

1
answer

Is there a way to call a C function in C #?

Let's say I have a library with a C function, which was compiled using gcc, is there any way to call this function in C #, if so what would its performance compare to the same function created in C #?     
asked by 25.09.2016 / 18:22
2
answers

ERROR - Paste XElement C #

Hello. I'm trying to get a Node from an xml NFe and this may be showing up the image error. Atthebeginningoftheclass,aprivateXDocumentxDoc;variablewascreated.Thexmlfileisinsidethedebugfolder.EvenputtingsothesameErrorappears:XElement_xDetModelo=...
asked by 19.09.2016 / 22:15
2
answers

WPF C # String Format

I have a usercontrol with the following configuration: <UserControl x:Class="PainelPendencias.View.PendenciaConsulta" x:Name="uCPendenciaConsulta" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
asked by 20.12.2016 / 14:48
2
answers

Connection string error in visual studio 2015

When I put the connection string, the following error appears: Con = new SqlConnection("Data Source=(localdb)\MSSQLLocalDB;OutrosParametros");    Represents text as a series of Unicode characters When I put two slashes ( \ ) th...
asked by 19.12.2016 / 16:11
1
answer

E-Commerce Open Source in ASP.NET [closed]

I know that in PHP there is a lot of framework for e-commerce in the market today, but in ASP.NET, which frameworks are there today? What are the advantages and disadvantages of each? Is it worth using or building from scratch?     
asked by 11.01.2017 / 12:19
2
answers

Error when deleting second item from List

I'm using the following code to exclude items: if (e.KeyCode == Keys.Delete) { var remover = listaPedido.SingleOrDefault(r => r.ItemOffline == int.Parse(gridPedido.CurrentRow.Cells[3].Value.ToString())); if (remover != null) {...
asked by 08.01.2017 / 21:23
1
answer

Why are you saying that this object is null?

papelX.moderador = abc.Id; papelX.participantes.Add(abc); I'm finding a NullReferenceException in this code above. I am creating a papelX object and will use some properties of the object abc . Visual Studio is saying that on...
asked by 23.06.2016 / 05:12
1
answer

Solution .Net with Membership does not connect to oracle database

I'm trying to run a project on my computer but it reports error in the string:    OracleConnection.ConnectionString is invalid The same project works normally on the computer where it was started. The Oracle version on both computers is 1...
asked by 06.07.2016 / 15:19
4
answers

Entity inner join in LINQ

I wanted to make an inner join so that I get a list with the names of Logins from the Integer List of UsuarioID of class LoginsAtivos . public class Login { public int ID { get; set; } [Required] public string N...
asked by 28.06.2016 / 18:07
1
answer

Using oid column in PostgreSQL as primary key is correct?

PostgreSQL creates by default the OIDs (object identifiers) column, you can get it done. select oid, * from table I have a table that has no primary key, and I want to map it in Fluent nHibernate (C #). Is it better to use oid as...
asked by 18.11.2016 / 12:58