doubts with Entity Framework / SQL

Asked

Viewed 40 times

1

I have the following script:

inserir a descrição da imagem aqui

when I execute it, I get the following answer: inserir a descrição da imagem aqui

but when run by Entity Framework, the return is totally different, on all lines, the answer is the same, is it a bug? or did something wrong? inserir a descrição da imagem aqui

follows the model:

public class PesquisaDashModel
{
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public int qtde_resp { get; set; }
    public string pergunta { get; set; }
    public string resposta { get; set; }
}
  • Good afternoon! <br/> What is the type of your response attribute?

  • is string, I will edit and put the template.

  • You are connected to the correct database?

  • I am, I only have that basis

  • Instead of pictures paste your code into the question as you did for the C section#.

  • You can put a breakpoint before serializing the object, to check if the bug is in serialization?

  • Good morning @alessandremartins, managed to resolve?

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.