Questions tagged as 'c#'

1
answer

Check validity with two dates using ef 6

I have the following model: public class Documento { public int Id {get;set;} public int ClienteId {get;set;} public int TipoDocumentoId {get;set;} public DateTime Emissao {get;set;} public DateTime ProximaEmissao {get;set;} }...
asked by 17.12.2018 / 17:59
1
answer

How to use macros in VS2008?

I know how to use macros only in NetBeans as per the link manual. But I wanted to know how do I use macros in vs2008? I want to set a macro and a shortcut key for it. eg a macro that writes in the editor "blababla" [new line] "blablabla"...
asked by 11.03.2014 / 14:32
1
answer

Session variables in ASP.Net

I have a method in AJAX that sends me a certain value, when so requested, for a session variable (a list of strings in this case). Session Variable private static List<string> ListData { get{return (List<string>) Session["Li...
asked by 27.04.2014 / 12:14
0
answers

My Android App is giving error while executing

When I click the button the message: Android.App has stopped. I have this code that I downloaded on the internet to do a Geolocation test. AXml: <StackLayout Orientation="Vertical"> <Button Text="Get GPS location"...
asked by 18.12.2018 / 13:35
0
answers

Step Validation ASP.NET MVC Question to continue the process

Good afternoon, I have the following method, where the intention is to return a Yes or No message to the user at View : public ObjetoResposta BeforePost(int step, string nomeUsuario, bool gravaLog) { if (!gravaLog && step...
asked by 13.12.2018 / 18:28
1
answer

List not being passed as method parameter

I need to implement is the RoutesBetween method to trace the route between one point and another (in this case, point A and E ). Test Method: public void TestRoutesBetweenTwoPoints() { var links = new ILink<string>[]...
asked by 21.12.2018 / 01:23
0
answers

Retrieving Values from a Json Array

Good afternoon, In recent days I have developed a screen for sending messages, via sms, in C # mvc. The api that I am consuming, returns through a webhook a json file, for my controller, I would like to know how to present this result in a...
asked by 12.12.2018 / 19:41
0
answers

Enabling in Swagger operations already Authenticated (Net.Framework, not Asp.Net.Core)

I have a project in WebAPI in Net Framework Full (it is not ASPNET Core ), with Swagger already configured and I have already read numerous tutorials on the Internet, but nothing I did worked out. What I need is that...
asked by 10.12.2018 / 13:35
1
answer

C # converter Array for insertion into the bank

I have a Array , some of the values of this array will be added as float others as int , my doubts are as follows, how can I convert only one array not the whole list? I would have to create a variable to receive this value...
asked by 24.12.2018 / 15:31
0
answers

Entity Framework 6 get attributes in SaveChanges

I am using Entity Framework 6 with Oracle . The database is from a legacy system, so I plan to set the primary registry keys on hand. To make life easier, I want to get the SaveChanges of DbContext data from the tab...
asked by 11.12.2018 / 17:43