Questions tagged as 'c#'

0
answers

MySqlDataAdapter Fill giving error

When using database connection in C #, I saw many ways to do it. I can make insertion of data in the database very quiet, but the selection of data is leaving me with white hair. Below the code and I will explain the error soon. public void...
asked by 06.01.2017 / 14:02
0
answers

Increase varchar field size (existing in the database) with NHibernate

Let's say that this field with size 11 exists in the database, across multiple clients. Map(x => x.CpfCnpj).Not.Nullable().Length(11); And one day I need to raise it to .Length (14). Is there any way to configure for NHibernate to do thi...
asked by 15.12.2016 / 14:49
0
answers

Problem with OAuth2 JWT in WebApi2

I'm trying to get the token in the form of a token, but I'm not able to validate the token. My code looks like this when I'm going to call api. What happens is: I am sending the request with the token, but it still does not validate, the to...
asked by 16.12.2016 / 15:35
0
answers

How to create a "DIV" type in Xamarin Forms [closed]

How do I create a component that looks like a div in Xamarin Forms ? I need to create something inside that will have some labels with information regarding the user's address, and will be displayed according to the list of a...
asked by 22.12.2016 / 11:08
1
answer

Scanning on the Async console

How to make a Console program, while it processes some task it perform a write in the console (type a counter) asynchronous? independent. In other words, it will be writing independently of the other processes. Something like: ex:...
asked by 17.01.2017 / 13:09
1
answer

How to temporarily block a file?

I'm trying like this: OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.ShowDialog(); string filePath = openFileDialog.FileName; Process processo = Process.Start(filePath); FileStream fileStream = new FileStream(filePath, Fi...
asked by 29.11.2016 / 02:03
1
answer

NHibernate Mapping

How do I map a table that has a compound key in NHibernate? For example: I have a table named configuracao . This table has a reference to the local_estoque table. Normally a mapping would look like this: References(x => x.L...
asked by 28.11.2016 / 17:35
0
answers

How to link image on canvas with an object

I have the following class: class Sapo { private Image imgSapo; public int IdSapo { get; } public Sapo(int id) { imgSapo = new Image(); IdSapo = id; } public Image show { get {...
asked by 28.11.2016 / 17:33
0
answers

ASP.NET MVC + Checkbox how to proceed? [closed]

I have a list where you can register a SOCCER TIMES in CHAMPIONSHIPS, that is, I need to select several teams for a league, I make a list with checkboxes but I do not know how to proceed later: <ul> @foreach (var item i...
asked by 30.11.2016 / 00:05
1
answer

WCF for consumption in Silverlight application (Windows Phone 8.0)

I'm having trouble adding ServiceReference, it usually adds but when it generates the "Client" class it encounters the following error:    No endpoints compatible with Silverlight 3 were found. The generated   client class will not be usable...
asked by 26.09.2015 / 17:40