Questions tagged as 'asp.net-mvc'

2
answers

Object error not instantiated

I have a model named ClientesModel . Inside it I have the fields: public int id { get; set; } public int codcli { get; set; } public string nome { get; set; } public string endereco { get; set; } public string nr {...
asked by 22.04.2016 / 21:17
1
answer

ASP.NET MVC Calculate value in a table

I am developing a register where I will have a table with some additional details that must be inserted together with the main register. But one of the columns of this table is calculated, which is where I'm having difficulty pe...
asked by 28.04.2016 / 02:05
2
answers

NOT IN in linq using a subquery

I'm using the answer as the basis on: link I need to make a query where it does not contain (NOT IN) the Ids coming from another query. The SQL Query is this: SELECT DISTINCT tbl_boleto.int_IDC, tbl_Admin.* //redução do código FROM...
asked by 08.03.2016 / 16:45
1
answer

Location and maps [closed]

Hello, I'm going to work on an application that will have to work with location and maps, basically the user will inform an address and it will appear to him nearby places, so I wanted to know + - the way of the stones for this, I was thinking ab...
asked by 03.01.2016 / 16:51
1
answer

List names in a query and send to a ViewModel

I wanted to list the names belonging to a group and send them to a ViewModel and be collected by a View (details). Problem:    'IQueryable' does not contain a definition for   'NameCategory' and in the extension method 'NameCategory'   accept...
asked by 07.01.2016 / 16:35
2
answers

Search in the Entity Framework as case sensitive

I am using Entity Framework 6, MySQL, ASP.NET MVC. The problem is this: when I search the form (my search view), the EF is differentiating capital from lowercase. When I query directly in MySQL, using SqlYog for example, it does not make any...
asked by 25.06.2016 / 15:56
1
answer

Generic class for CRUD

I have some common CRUD features in the database such as cadastrar , buscar um registro , buscar todos os registros , and excluir . For this, I am currently implementing a class manager each database table to perform the...
asked by 26.07.2016 / 14:58
1
answer

Injection dependency with Ninject for more than one web project

Hello, in an application I have an MVC web project and a Web API project, in the MVC project I already have the Ninject configured with the dependency injections and I would like to take advantage of it in this Web API project, I know that maybe...
asked by 03.11.2015 / 12:41
2
answers

help to view multiple line pass to a Controller

Well, I have a simple model for studies. There are 3 tables, Person, Allergy and Person Allergy. Being that a person can have several allergies. My person template is: public partial class Pessoa { [System.Diagnostics.CodeAnaly...
asked by 14.08.2017 / 15:55
2
answers

Email Differentiating two environments in the system

Personal I need a help, in my system I have two Environments, being one of production and another of homologation. So being on my system, I have a part that sends email, to the user. Could someone help me in order to send the email, the system t...
asked by 04.08.2017 / 16:56