Saturday, October 29, 2016

ASP.NET MVC 4 Database Tutorial In Urdu - Handling Model Changes & using Custom Query

4 comments:

  1. Aasalam O Alaikum! Sir whole application is working fine.. But database is not generating! I tried everything.. I code same as you.. but it didn't work!!

    ReplyDelete
    Replies
    1. Watch the video again. Link is below.

      https://www.youtube.com/watch?v=o1MOrtg-d8o&index=6&list=PLUyYwyJA_WfRyFfD8qChYtW7RXGkWdcRt

      Delete
  2. first of qll bundle of thanks for such a great tutorial,
    my question is many times we need to change our modal, as a result database will be droped and created freshly , but in this case we lose all data,
    how to recreate changes in modal without loosing data

    waiting for your answer

    ReplyDelete
    Replies
    1. Use Entity Framework migrations. An example is shown below. Read it carefully.
      https://msdn.microsoft.com/en-us/library/jj591621(v=vs.113).aspx

      Delete