Questions tagged as 'c#'

0
answers

Project with MVVM architecture

I'm having some doubts about the MVVM architecture. I'm developing a project that has the following features: - Main form with dynamic content - Main form generates some tabs according to the configuration - Each tab generates some panels acc...
asked by 20.09.2018 / 19:43
2
answers

Pass array of Json objects to Controller C # .NET

I need to make a post, and so far I'm trying to get AJAX to send an object to the Controller, but I'm having trouble getting the object. View / html: <select name="Servers" id="servers" multiple> <option value='{ "Id": "1",...
asked by 19.09.2018 / 01:22
1
answer

Using Identity with Entity Framework to make one-to-many relationship with other tables

In my scenario a user has several boats and a boat has several notes. So I need to relate the user to the boat so that this user can see these notes. I'm using the MVC 5 default identity template. So I need to relate the AspNetUser table t...
asked by 25.09.2018 / 21:12
1
answer

How to make the application wait for a while?

It is common to have situations that we need to delay the execution of the code for a period, either to show or delete a message or something visual soon after, either to try something again, wait for something in a test or something creative th...
asked by 09.09.2015 / 16:55
1
answer

X.PagedList.Mvc with Core and Bootstrap 4.0

How to use X.PagedList.Mvc with Core and Bootstrap 4.0 , and thus create a full automatic page.     
asked by 24.09.2018 / 19:47
0
answers

Error added reference NFeReceptionEvent4

I'm having trouble adding a reference to the NFeReceptionEvent4 service, SEFAZ National Environment. Address of the service: link . I'm going into my project > "Service References" > "Add Service References" > "Advanced" > "Ad...
asked by 18.09.2018 / 17:57
0
answers

Pass parameter to new MVC controller

I need to pass parameter "01" from the link to another controller. namespace Intranet.Presentation.Areas.GestaoDeServicos.Controllers { public class ServicoController : Controller { public ActionResult Cadastro(int id)...
asked by 14.09.2018 / 19:38
1
answer

Accessibility inconsistent: parameter type "value" is less accessible than the "value" method

   Inconsistent accessibility: parameter type "IClientManager" is less accessible than the "ClientController.ClientController (IclientManager, UserManager)" method Controller: public class ClientController : Controller { private readon...
asked by 18.09.2018 / 18:47
1
answer

Implicitly can not be converted

I'm getting the following error:    Can not convert from "TClient" to "EasySystem.Models.ApplicationClient" public class ClientManager<TClient> { private ApplicationDbContext _context; public ClientManager(ApplicationDbCont...
asked by 14.09.2018 / 14:54
2
answers

How to configure PostgreSQL AutoIncrement using EF Core

I have a table mapping (Entity Framework Core 2.0) in which the Id field needs to be AutoIncrement. The problem is that PostgreSQL is starting with high value and often jumps to very high sequences, type, increasing by 10 from 10. What am...
asked by 21.09.2018 / 23:49