0

I have both a table and a class in my system called Operações.

In this code:

var db = new ApplicationDbContext();
var model = db.Estruturas.Include(m => m.Produto).Include(m => m.Produto.Unidade);
var operacao = db.Operacoes;

foreach (var register in model)
{
    operação.

Typing operação. won't bring up intellisense and show any properties of the database table, or the class. How can I access them?

1
  • operacao, not operação. See also Naming Guidelines. Names in c# are also case sensitive. It should go without saying that ã is not the same as a, they are not interchangeable in the name of a variable the same as A an a are not interchangeable in the name of a variable. Commented Oct 20, 2017 at 12:49

1 Answer 1

1

operacao instead of operação. The name is different.

Also, it is a good practice not to use special characters like ç or ã

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.