Questions tagged as 'c#'

1
answer

I can not save a Dictionary

I have a page that may have access not allowed, open for reading or open for reading and writing. Although the page is completely closed, the owner of the page can choose some users of the system that can have access to it. These exceptions can...
asked by 23.12.2015 / 20:04
1
answer

Best practices when filtering a query with EntityFramework

I have a method in web api that receives a model from a search form and according to its values, it starts to filter the result of this search, as shown below. public HttpResponseMessage Buscar([FromBody]BuscarModel model) { C...
asked by 04.01.2016 / 19:44
1
answer

What is the best way to make multiple requests to an API?

I came to put this question one more time thinking that it would be beneficial for the community to have a canonical way of making multiple http requests to a particular API. More specifically this question motivated me to put my question....
asked by 19.05.2016 / 11:09
1
answer

Socket Multi Thread Server and its Clients talking to each other

I have a question that is killing me and I would like to share it with you, maybe someone has the answer or a way to heal that doubt. I have good experience with Web / Desktop development, API / REST connections and Socket. But all these conn...
asked by 24.05.2016 / 05:03
1
answer

Specific application of the attribute [ChildActionOnly]

I saw through the ASP.NET MVC documentation that using the [ChildActionOnly] attribute prevents the method from being called directly via GET, only through a specific view. Frankly, I did not get it. Can anyone clarify? Example usage:...
asked by 28.02.2014 / 19:00
1
answer

What is the difference between Show (), ShowDialog () and Application.Run ()?

I read something about modal but I did not understand, could anyone explain?     
asked by 28.05.2017 / 12:57
1
answer

Get properties of a class with condition. C # [closed]

I would like to get the properties of my Parent object, but would not like to get the property (States) from my Country class. I tried the way it is in the "Test" class and I could not because I did not know the Type that is the IEnumerable....
asked by 08.06.2017 / 22:40
1
answer

How do I know if the solution has been modified?

I would like to make a code, which when executed, would know if the solution was changed and which project has changed, but I do not know if there is a method to take as a basis. Then I would like your help.     
asked by 01.04.2015 / 22:08
1
answer

Difference in forms of exclusion with EF

I want to know, what is the difference (if any) in the form of exclusion using EF db.Contexto.Remove(objeto); db.SaveChanges(); And using EntityState.Deleted; Db.Entry(objeto).State = System.Data.Entity.EntityState.Deleted; Db.Save...
asked by 24.05.2017 / 05:08
2
answers

Capture SOAP request

I would like to log all soap requests exactly as they arrived on my server. Is there a way to do this via C #?     
asked by 13.04.2015 / 15:39