Questions tagged as 'asp.net-mvc'

0
answers

(ASP MVC) Bootstrap Glyphicons do not work in Firefox

I have an ASP MVC 5 application where I use the Bootstrap that comes along, but both in the debug and in the publication, the Bootstrap (glyphicons) icons are not being loaded, see image: I'm using the Bootstrap v3.3.7 version in the pr...
asked by 11.07.2017 / 21:27
1
answer

Relationship error with Entity Framework

I'm developing a test project that I want to include in my TCC, but I encountered a problem matching two entities to create the tables in the database with the Entity Framework. They are 'Post' and 'Comment' public class Post {...
asked by 11.07.2017 / 04:43
0
answers

How to change the default folder of an ASP .NET Core application?

I'm trying to set up an ASP .NET Core Web site to host an AngularJS application. The structure that my "index" page is using is: /wwwroot/app/index.html I tried some settings in the Startup.cs file, like this: app.UseStaticFiles(ne...
asked by 02.08.2017 / 18:23
0
answers

Creating Collections from Azure Cosmos DB

Well I was creating a Poc with Generic Interface for manipulation of my data, but I had difficulties doing with WebApi MVC, I did with good old MVC. But for all JSON issues, I think I lose a lot if I do not work with REST. Could you help me?...
asked by 18.07.2017 / 15:44
1
answer

Problems retrieving DB data with Entity 6.1.3 and Web API

I did a test project, called quotation to use the Web API and Entity. Well, I've been to my web.config and created my connection string like this: <add name="CotacaoContext" connectionString="Data Source=Minha_Maquina\Instancia; Initial Cat...
asked by 13.07.2017 / 14:09
0
answers

How can I use two models in the same view?

I have a View that has a dropdownlist and a text box. This dropdownlist is returning your items from a model. After filling these two objects, I make a request that will bring some results that I want to show below, however I am loading another...
asked by 22.06.2017 / 20:30
1
answer

Separate Asp.Net Context Context and Application Context

I'm creating a repository using the Entity Framework, and the need arose for my entities to communicate with the IdentityUser entity of Identity, but Identity is in a separate layer of my application layer.  Is it possible to create two contex...
asked by 16.06.2017 / 04:09
0
answers

Field of type type="email" scorn ValidationMessageFor asp.net mvc?

When using this type of field, it ignores ValidationMessageFor ? In class [Required(ErrorMessage = "Informe o seu login.")] [DataType(DataType.EmailAddress, ErrorMessage = "Por favor insira ...")] [StringLength(50, ErrorMessage = "O...
asked by 25.06.2017 / 02:44
3
answers

Value processing null c #

I have a method that gives me an execption, how do I handle this ?: thanks public string CarregaProdutosDermaClube(string codigoproduto) { //consulta os dados var tbuscar = new BuscaProdutosDermaClubeDAL(); var retorno = tbuscar.P...
asked by 01.06.2017 / 16:11
0
answers

Transaction with Entitiframework 6.1.3 and PostgresSql does not work correctly

I'm trying to use EntityFramework6.Npgsqlcom transaction, however I get an exception when I call the DbContext.UseTransaction method and step a transaction. Error message (Last InnerException):    "Npgsql.PostgresException (0x80004005):...
asked by 21.05.2017 / 17:50