+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Turn off EF code first in custom module with Thunder

Turn off EF code first in custom module with Thunder

2 posts, 0 answered
  1. Khoa
    Khoa avatar
    10 posts
    Registered:
    03 Dec 2013
    11 Dec 2013
    Link to this post
    Hi,

    I want to turn off EF code first when developing module with Thunder.

    For example: 

    Database.SetInitializer<MyDbContext>(null);

    How can I do that with EF in Sitefinity module?

    Thanks
  2. Veselin Vasilev
    Veselin Vasilev avatar
    23 posts
    Registered:
    27 Jul 2015
    17 Dec 2013
    Link to this post
    Hello,

    I am afraid this is not possible. 

    Code first is the only option available. Sitefinity Thunder has generated all the code for you, based on the choices you've made during the creation of the module and then it needs to update the database.

    What is your exact scenario? 


    Regards,
    Veselin Vasilev
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered