locked
Reference Entity Class in different DD Web Project RRS feed

  • Question

  • User1812187139 posted

    Hey,

    I am a litlle new to Dynamic Data and have a few questions.

    I have an complied Entity Framework class in a project (FF) to be used in different DD projects  I make reference to it in a another Dynamic Data web project (DD) and instanitate the EF class and it and displays all the data tables ( ScaffoldAllTables = true) etc...  

    Now I want to only scaffold certain tables and fields in the DD project.  How do you do this in the DD project without the ability of partial classes since they must be compiled in the EF project?

    If you have to put the scaffold attributes in the EF project then the EF assembly can only realisitcally be used in one other DD project.   Do you have to recreate or copy the EF model files to each DD project do display differnt views of the database?.   

    I would think that you would want some business logic in EF model then use the partial classes in each DD project to manage the view, 

    Am I missing something or is this the way it works?

     

       

     

    ..  

    Wednesday, November 19, 2008 9:27 PM

All replies