I got this error:
The 'DataLib' property on 'Release' could not be set to 'System.Double' value. You must set this property to a non-null value of type 'System.Single'
What happens is that I commented the property in my Entity Model and also in lambda, like this:
public IEnumerable<Liberacao> getAutoriza(int idorcamento)
{
var lista = contexto.Liberacoes
.Where(lib => lib.IdOrcamento == idorcamento)
.ToList()
.Select(lib => new Liberacao
{
TipoVenda = lib.TipoVenda,
Vencimento = lib.Vencimento,
Juros = lib.Juros,
Entrada = lib.Entrada,
Acrescimo = lib.Acrescimo,
Desconto = lib.Desconto,
Mensagem = lib.Mensagem,
//DataLib = lib.DataLib,
Vendedor = lib.Vendedor,
Cliente = lib.Cliente,
Filial = lib.Filial
}).ToList();
return lista;
}
I just do not understand why the error persists in the same field. I already gave a clean in solution and nothing.