Questions tagged as 'asp.net-mvc'

1
answer

How to use 4 model in a view

Hello, I have 4 class Cliente , Locacao , Item and Cacamba : public class Cliente { public Guid ClienteID { get; set; } public string Nome { get; set; } ............... } public class Locacao { public Guid L...
asked by 13.06.2016 / 10:55
1
answer

Give preference to the results that have the parameter passed in the Entity Framework [duplicate]

I'm trying to implement a data solution that first displays the values that have the passed parameter and then pass the other parameters. Example: In a product table you have the following data: Coca-Cola -> Coca Cola Company Pepsi...
asked by 28.03.2016 / 15:04
1
answer

Data Annotation - error ratio 1: 1

I'm trying to make a 1 to 1 ratio. Apparently it would be something simple but my system is getting lost in this relationship; It does not make a mistake, but the relationship is wrong: Model: public class CieloRecorrencia { [Key...
asked by 04.04.2016 / 21:27
1
answer

Remove Git binding in ASP.NET MVC Project

I started an ASP.NET MVC project and initially I used git for code control, but now I want to transfer to Team Foundation Services, how do I unlink my git project?     
asked by 20.05.2016 / 16:12
1
answer

Send e-mail without appearing in the sent box

I do not want these sent items to appear in the real estate email. string emailOrigem = imobiliaria.Email; string password = imobiliaria.Senha; string html = getBody(dados); //aqui serve pra formata o html...
asked by 27.09.2016 / 03:19
1
answer

Does not send email retrieval of password by SendGrid

I've implemented a class to send password recovery email, but the email is not sent. Code class sends email: public static Task EnviaEmail(string email, string assunto, string mensagem) { var MinhaMensagem = new SendGridMessage(...
asked by 27.09.2016 / 03:59
1
answer

How to use the service based database item in Visual Studio 2015?

I'm doing an Entity Framework online course in which the course uses Visual Studio in the 2012 Express version, since I'm using Visual Studio Enterprise 2015. And during the course it asks to create a new data called " service based database "....
asked by 09.02.2016 / 15:31
2
answers

Create tooltips using Attributes

I created a custom attribute, called ToolTip. I would like to add tooltips on every property that has this attribute. Example: In my model I have the following property: [Required, ToolTip("Neste campo você deve inserir um nome.")] pub...
asked by 12.02.2016 / 20:47
2
answers

Subquery in Lambda

I would like to do a subquery, today in SQL: SELECT intid as IDCliente, (SELECT TOP (1) int_EP FROM tbl_estagioprocesso WHERE...
asked by 17.02.2016 / 14:42
1
answer

How to use Microsoft ASP.Net MVC features?

I found this package, but I do not know how to use it:    Microsoft ASP.NET MVC English-BR Features       Microsoft.AspNet.Mvc.us    link How do I use the features of this package?     
asked by 30.06.2016 / 04:37