Questions tagged as 'c#'

1
answer

Put the value of a hql in a var [closed]

I need to have my two tables work together, where Abastecimento takes the Product Name ( NomeProdutoId ), from the Compra table, I was able to get it to get the Product Name, but wanted me to If you do not know the name of th...
asked by 23.10.2017 / 19:35
1
answer

REINF - Invalid Signature

I'm developing a messaging for reinf but I'm having trouble sending the first event. By sending a R1000 I'm getting the message: MS0017 Invalid event signature. Digital signature of XML document is invalid I am generating the event...
asked by 24.10.2017 / 14:06
1
answer

NullReferenceException when trying to write to the database

I'm having this error, when I'm going to write form data to the bank.    Error: System.NullReferenceException: System.NullReferenceExceptionocorridoHResult=0x80004003Message=Referênciadeobjetonãodefinidaparaumainstânciadeumobjeto.Source=...
asked by 13.10.2017 / 14:52
1
answer

TransactionScope with multiple StoredProcedures

I'm thinking of implementing TransactionScope in my code, however, all bank accesses are done by StoredProcedures . Can TransactionScope be able to give rollback in multiple actions performed in StoredProcedures...
asked by 10.10.2017 / 16:46
1
answer

How to navigate to another page using WebBrowser?

I'm trying to access a URL and log in and password for authentication and then navigate between the pages? After I log in to the link page, I am not getting any changes to another page that would be link webBrowser1.ScriptErrorsSuppress...
asked by 13.10.2017 / 17:14
1
answer

How to put subtitles below in Chart?

I have tried to work with the Chart in C #. But now I can not leave all of the subtitles below their respective columns. The image shows that captions 1, 3, 5, 7, 9 and 11 are not appearing, even if they are named. Does anyone kno...
asked by 29.09.2017 / 15:56
1
answer

Can I run a .NET Native image directly?

I have compiled my executable in C # for a .NET Native image using ngen.exe , I have the location of the file, but when I run Windows it says that the executable is invalid. My goal was to make my application written in C # independent...
asked by 20.01.2018 / 21:10
1
answer

Error when adding SUM

I'm trying to implement SUM within these lines of code to sum the two columns Litro and TotalGasto Code: var teste = consulta.Where(i => i.DtAbastecido >= dataInicio && i.Dt...
asked by 01.02.2018 / 20:35
2
answers

Compare date field with current date in datagridviwer

I have a field in my datagridiviwer that is called "PROGRAMMING" this field receives a date, which comes from the database as varchar or string, I need to compare the date that is in this field with the current date, if it is greater than...
asked by 16.10.2017 / 13:33
1
answer

Linq to sql with subquery

I have two tables, and I would like to get only the data from table A by filtering through the related table B. I would like to know how to write this query with Linq to Sql in C #. I've written the example below on Sql Server to make understand...
asked by 25.09.2017 / 21:26