I have 5 separate SQL queries that I am executing in order in a controller action. This is the method I am using to execute them:
var entity = new TestEntities();
entity.Database.ExecuteSqlCommand("//SQL Query");
So, basically I have five ExecuteSqlCommand in a row with different queries that must execute in order and the code must continue to execute below them. Is there a better way to execute queries from inside a controller action? I am not sure the best way to do error handling with this current method.
Thanks!
