Questions tagged as '.net'

1
answer

Organize EDMX Classes

I have a DB First project that uses an EDMX to map the database. The tables have standard columns that exist in all of them and I could organize and leave the code much more generic if I could implement interfaces in it with these properties, bu...
asked by 30.09.2016 / 21:25
1
answer

Organizing forms inheritance - C #

I'm doing a program to sell products and I'm having a design problem. The differential of this program is that it can take two different faces: one for sale of chocolates and another for sale of fruit. The forms I organized more or less this way...
asked by 18.10.2016 / 16:16
1
answer

How do I use an existing database in an ASP.NET MVC C # and Identity application?

I need to authenticate users. So I created my database with all my business rules, made the connection to the ASP.NET MVC application, and started programming. Now, when I was doing the part of user I noticed that there are two connection...
asked by 12.10.2016 / 13:55
1
answer

HttpContext.Current.Session is null in thread

Hello, I have a problem with my code. I'm doing a function that lasts about 3/4 hours in length, and so I decided to do that function on a thread so it does not block the overall system operation. after some research I found some solutions and t...
asked by 06.10.2016 / 20:49
1
answer

Join for linq c #

I have the following query in SQl Sevrer SELECT PT.id, P.nome AS Codigo, PT.topologiaid, TE.id AS TipoEntidadeId FROM [dbo].[propriedade] P INNER JOIN [dbo].[propriedadetopologia] PT ON P.id...
asked by 07.12.2018 / 22:13
0
answers

Download file with Selenium Chromedriver in headless mode

I'm trying to download a file in headless mode. I instantiated the driver like this: public static IWebDriver CriarWebDriver() { var options = new ChromeOptions(); if(HelperConfig.GetInstance().Headless) { options.AddAr...
asked by 12.12.2018 / 21:23
2
answers

Converting a variable with replace to decimal

I am having a small question, I pass a 0,05 decimal value to a A variable of type string . After this variable receives this value, it converts , to point . , which is 0.05 After I do this replace, I co...
asked by 04.01.2016 / 18:58
1
answer

Doubt Model Service DDD

I have a question about a project that follows the DDD architecture model. In a model service I need an information that is the result of a method of another service, what is the correct way to get this information, I create a property of thi...
asked by 25.01.2016 / 19:26
1
answer

Create fields dynamically and set in the model

I'm developing a registration, where I have my fields according to my model: public class Autor { [Key] public int IdAutor { get; set; } public string Nome { get; set; } public DateTime DataNascimento { get; set; } } That is...
asked by 03.12.2015 / 19:10
2
answers

Error 500 when consuming NFeDistribuicaoDFe [closed]

I'm trying to consume the NFE download service on the farm: link Specification link Using .Net, C #, MVC But I have gotten the following error: The remote server returned an error: (500) Internal Server Error. The messag...
asked by 08.01.2016 / 15:32