Questions tagged as 'asp.net-mvc-5'

2
answers

Relationship 1 to 1 with Entity Framework

I have 2 entities: Equipamento and Databook . A Equipamento can only have a Databook and a Databook is only a Equipamento . How can I make this relationship with Entity Framework? Follow the Classes:...
asked by 24.10.2014 / 01:16
1
answer

Best Practices when modulating an application with EF and multi-bank

Let's say I want to model an application in .NET using EntityFramework as ORM and use one of its advantages, be "generic" for several RDBMS . So, for example, I want my application to accept working with Firebird ,...
asked by 09.05.2014 / 03:23
1
answer

Query user data logged in Windows Authentication

In my application I use authentication mode="Windows" as a form of authentication. In this way, I can know the user name, referring to the field in the AD and the domain of the user using HttpContext.Current.User.Identity.Name ,...
asked by 27.05.2015 / 15:47
1
answer

IF issues in javascript

I'm a beginner in Asp.Net MVC, and I'm developing an application that manages Courses and in my sign up screen I'm trying to validation javascript that if the student is already enrolled in a course and he tries to enroll again in...
asked by 29.06.2015 / 18:34
1
answer

How to log in without using the Identity pattern?

An update on Api of Facebook made the default login form of Identity stop working. The way I'm doing that stopped working looks like this: public void ConfigureAuth(IAppBuilder app) { app.CreatePerOwinContext(Applicatio...
asked by 30.03.2017 / 01:16
2
answers

What better way to organize and work with routes in ASP.NET MVC?

What better way to organize and work with routes in ASP.NET MVC? While we have 1, 2 routes, it's quiet, but when do we get 500? 600? In a corporate application there are many routes, what is the best way to organize them without losing contro...
asked by 07.08.2014 / 23:56
2
answers

Entity Framework 6 does not create database

I created a C # WEB MVC5 project in Visual Studio 2013, installed the entity framework 6 and created my classes ("entities") as well as the DBContext with their DBsets. Within WEB.Config I configured my connection string and in the DBContext...
asked by 26.11.2014 / 11:52
1
answer

A possibly dangerous value Request.Form was detected on the client

I have a problem when I send this type of input in the input field: &&&&%$&#_(@)(#_!**@#)24 R87R XDHNSIFN 89Q7201784 The Resquest.Form error occurs. Error Message: ControllerusingSystem;usingSystem.Collections.Gener...
asked by 19.06.2015 / 15:13
3
answers

What difference between DropDownListFor and DropDownList

What is the difference between DropDownListFor and DropDownList? And when and which one to use?     
asked by 11.02.2015 / 13:20
1
answer

Auto Relationship in EF

I'm having the following problem when creating two auto relationships. When you run the Update-Database the following error message appears:    Unable to determine the main end of an association between the   types 'Autorelação.Franquia'...
asked by 28.07.2016 / 15:49