Link to home
Start Free TrialLog in
Avatar of danburyit
danburyit

asked on

Table Scaffolding with Dynamic Data not working

Hi All,

I've created a Dynamic Site and referenced the dll of another project (also tried adding that project to solution) with an Entity Framework Model. The scaffolding all works fine, but I can't seem to get a partial class with attributes to be recognized to hide a couple of the tables and columns. My using statements appear to be in order, I changed the namespace in my new class to match the namespace where the EDM resides, but nothing seems to work. Does the class file need a special name? Some other config I'm missing? Thanks ahead.
[ScaffoldTable(false)]
public partial class Routes
{
}
 
(Should make Routes table not show in list, yes?)

Open in new window

Avatar of danburyit
danburyit

ASKER

OK, not sure what I was thinking in the first case. Partial classes can't be in different assemblies; however, I added the project with the EDM to the Dynamic Data solution and added the partial classes in the EDM project. Still not working.
ASKER CERTIFIED SOLUTION
Avatar of danburyit
danburyit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial