Solved

Table Scaffolding with Dynamic Data not working

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

12 Experts available now in Live!

Get 1:1 Help Now