Questions tagged as 'c#'

1
answer

Query Dynamica Linq

I need to create a dynamic query, in which the% L DayOfWeek.Monday variable is dynamic, how can I define it? DataClassesPDataContext pe = new DataClassesPDataContext(); var qry = from p in pe.R join q i...
asked by 03.04.2014 / 10:25
1
answer

Why is the Entity Framework generating a new record in the database? [duplicate]

Next, I'm working on a new project asp.net-mvc , and I have 3 classes. public class Anuncio { public int AnuncioID { get; set; } public string UsuarioID { get; set; } [Required] [MaxLength(255)] [Display(Name="Título")...
asked by 01.04.2014 / 19:45
1
answer

Read XML with equal (nodes) tags

I have this xml, and I need to get the tag <ns2:InfNfse Id="24030TZYKNKKIPZM4PU7XGAZJ0UA84O6"> But in 'xml' it has several tags with equal names. I tried to do it this way below: XmlElement retEnviNFe = xmlResponse.Docum...
asked by 04.01.2019 / 19:17
0
answers

How do I declare a @model in my view

I have a project called Billing. Inside, there is a folder called Models where my models are (only 2). One of them is called an invoice and I need to fill a table (bootstrap) with the data of this model. I need to do something like this, unless...
asked by 04.01.2019 / 19:10
1
answer

High volume data loading with NHibernate + Windows Forms

I use ORM NHibernate in a windows forms project and there is a forecast of working with a large volume of data across multiple tables, ranging from 1 to 15 thousand records on average. Although not as large a volume of data as some may say, this...
asked by 07.05.2014 / 17:26
2
answers

How to convert Sender to a Form?

In my program, I need the following routine to work: private void FuncaoTal() { frmSelecao.FormClosing += atualizarEvento; SplitContMenu.Panel2.Controls.Clear(); splitContMenu.Panel2.Controls.Add(frmSelecao); frmSelecao.Show(); } priva...
asked by 31.01.2014 / 14:52
1
answer

How to change settings for a binding Source?

How do I run an application that is binding to a local database to use binding on any machine.     
asked by 31.01.2014 / 12:31
1
answer

Regex to extract HTML information

I'm trying to extract information that comes from reading email. But when it passes the match line, it bursts the following error:    {"analyzing \" (? si: (Information Type [^ \ d] + (? [\ d] +) | Information Type (? [\ d] +)   - Invalid gro...
asked by 03.01.2019 / 13:14
2
answers

.NET Code Protection

I have a C # application that I developed, it will be installed on multiple clients. The problem is that I have to protect the code of the application, because I did some tests with the application ILspy and all the source code is exposed. Anyon...
asked by 20.07.2016 / 19:42
1
answer

Error consuming method of a web service rest

I created a method where my partner, besides receiving data from our base, also sends us. Well, that was working well. Then I discovered that there was a field missing. I added this field in the interface and also in the method. Well, I do not k...
asked by 04.06.2014 / 23:50