Questions tagged as 'c#'

2
answers

File supposedly being used can not be deleted

I have software that logs logs of errors from it even inside a "logs" folder. Each log file is created with the date of the current day, and is therefore unique to the current day. Example: 30-04-2014.log . I use StreamWriter to log t...
asked by 30.04.2014 / 11:43
2
answers

How to get position of a sublist within another list?

I have a list of bytes and I need to check if it contains a sub-list of bytes in a specific order. How can I make this check by getting the position of the sub-list in a simple way, using the Linq or the List features, that is,...
asked by 25.04.2014 / 21:23
2
answers

C # - Path to execution

I am doing a launcher, however I would like to leave the files with a "fixed" path, the launcher is in the same folder as the file to be started, but I do not know how I could create a "midway", something like in html, that just put a piece of t...
asked by 01.03.2014 / 17:10
1
answer

Automatic class generator

How do I get an entity in the DB (Oracle) and generate a class on my system that represents that entity? Ex: I have this entity    Customer       ID int primary key       Name varchar (100) And now with the tool it already generates...
asked by 17.02.2016 / 11:56
1
answer

Modular Programming

Something quite commonplace in developing business systems and how we meet different requirements, these requirements are often not used by certain customers, for example, when a company that operates in the field of sales would not need the mod...
asked by 17.12.2014 / 12:55
3
answers

Dynamic query in a List

How to apply a filter on a generic List object using Lambda? I know that with Reflection I can get an array with the names of the properties of my object and through Reflection itself retrieve the property of the object from its nam...
asked by 13.01.2015 / 21:09
1
answer

CommunicationException: Error in client when making HTTP request (HTTP.SYS) to third party WebService

I've been developing for eSocial for over a year already, and I'm encountering the following error on some clients when trying to send the service:    System.ServiceModel.CommunicationException : Error while doing HTTP request for link...
asked by 27.07.2018 / 21:04
1
answer

Customize URI templates using OData

I'm working on a project that contains the Microsoft.AspNet.WebApi.OData package, which offers a simplified implementation for OData V3 support, just use the EnableQueryAttribute attribute in the methods or classes where we want...
asked by 14.08.2018 / 16:23
1
answer

Display 2 dataTextField in a SelectList

Hello! I have a problem with making a selectlist display 2 values in textfield. I have the following SelectList that is stored in a viewbag: ViewBag.Account = new SelectList(new AccountBusiness().GetList<Account>(Util.AuxiliaryMethods.BM...
asked by 28.08.2018 / 15:01
2
answers

EF6 Code First Relationship between entities

I am trying to create a Condominium Data Model in ASP.NET with SQL Server. I stumbled upon the creation of the proprietario(1) relation with fracao(many) . The error returned is:    The INSERT statement conflicted with the FOR...
asked by 31.01.2014 / 13:14