none
Implementing Data Model (from Len Silverston bestseller book) in EF Core using Code Firs RRS feed

All replies

  • I can't implement the diagram below in EF. Someone can help me please!

    Wednesday, October 3, 2018 9:24 PM
  • Hi Ayod El Modai Arune,

    As far as I know, it seems that entity framework core doesn't have that feature currently. But you could achieve it via some extension tools, such as EFCorePowerTools, which could create a .DGML class diagram (and serves it up for saving) of most of the EntityFrameworkCore (EF Core 2) entities in the ASP.Net MVC project when you go to yourwebsite/dgml. 

    For more information, please refer to :

    https://github.com/ErikEJ/EFCorePowerTools/wiki

    https://github.com/ErikEJ/EFCorePowerTools/wiki/Inspect-your-DbContext-model

    Best regards,

    Zhanglong


    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.

    Thursday, October 4, 2018 1:23 AM
    Moderator
  • Hello Zhanglong,

    I just edit my question. The picture (of the diagram) wasn't  loaded. Now you can see. Please let me know how can I create classes like this on EF with Code First


    Friday, October 5, 2018 1:07 PM
  • Hi Ayod El Modai Arune,

    If you want to use entity framework 6(not ef core) with diagram, I would suggest that you could consider entity framework database first, which could create a edmx file with diagram, for more information, please refer to:

    https://docs.microsoft.com/en-us/ef/ef6/modeling/designer/workflows/database-first

    Best regards,

    Zhanglong 


    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.

    Monday, October 8, 2018 5:17 AM
    Moderator