none
dynamically add column to my database table RRS feed

  • Question

  • hello 

    i want dynamically add column to my database table at run time

    i want do that with entity framework code first in my mvc project

    how can i add column to my database table at run time with EF Code First?

    please help me

    thanks in advance

    • Moved by CoolDadTx Tuesday, September 19, 2017 1:54 PM EF related
    Tuesday, September 19, 2017 10:58 AM

All replies

  • See the following

    https://romiller.com/2012/03/26/dynamically-building-a-model-with-code-first/


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Tuesday, September 19, 2017 12:41 PM
  • hello 

    i want dynamically add column to my database table at run time

    i want do that with entity framework code first in my mvc project

    how can i add column to my database table at run time with EF Code First?

    please help me

    thanks in advance

    Why?

    Tuesday, September 19, 2017 10:18 PM
  • thanks for your help 

    but do you have any video tutorial for my problem ?

    Wednesday, September 20, 2017 5:54 AM
  • Hi ArshamCoder,

    Thank you for posting the problem here.

    >> dynamically add column to my database table

    For your feature, I suppose that you create a dynamic model which can maps a table so you could dynamically add column to my database table.

    >>but do you have any video tutorial for my problem ?

    You could refer to the following video which can create dynamic models.

    https://www.youtube.com/watch?v=zo2wsiyxeSo

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    I'm glad to be of help to you.

    Best Regards

    Bob

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, September 22, 2017 7:30 AM