Solved

Table Scaffolding with Dynamic Data not working

Posted on 2008-10-31
2
522 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Regex validation 2 24
Creating a route in asp.net webforms 2 26
Where did System.Data.Objects go? 2 27
Modal Popup Extender control 1 20
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 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