How to update classes at runtime? EF C# MVC

Asked

Viewed 44 times

3

I need to update my application’s classes because it has a function in my controller that creates a new column:

        public string ListarMapeamento()
    {
        banco.Database.ExecuteSqlCommand("ALTER TABLE RegrasMapeamento add Map_test3 varchar(255);");
        return "";
    }
  • Which class do you want to update? What information is there?

  • I want my file . edmx to take the new column from the bank, you understand?

  • 1

    And it will compile again every time it changes?

  • Yes, that’s exactly it!

  • Edit the question with code information that you use to include, delete, and export information from the table, class, and whatever you think you need to do this transaction as well. So we can help better.

No answers

Browser other questions tagged

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