Solved

Table Scaffolding with Dynamic Data not working

Posted on 2008-10-31
2
521 Views
Last Modified: 2013-11-08
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

0
Comment
Question by:danburyit
  • 2
2 Comments
 
LVL 1

Author Comment

by:danburyit
ID: 22852117
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.
0
 
LVL 1

Accepted Solution

by:
danburyit earned 0 total points
ID: 22853128
I got it. I tried again adding partial classes to a class file in the same project with the EDM. It worked this time. Must have had some typo last time.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A short film showing how OnPage and Connectwise integration works.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now