Is it possible to supperss a relationship property where is does'nt make sense to have the relasionship showing. Take the Northwind database for instance and the Order entity <- Shipper entity relationship, in data entry navigating from a shipper to all
it's orders is useless and could be confusing. All you might want to do in the shippers page is to add new shippers or update an existing shipper. so it would be nice to:
[Scaffold(false)]
public object Orders;
//public EntitySet<Order> Orders
and then have DynamicData not display the column for that relationship the way it does for columns/ fileds in an entity.
It would be nice to be able to only show some filters not all of them as again in you model filtering on some things you would make no sense.
Regards
Steve
ASP.NET Dynamic Data
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
How do you suppress scaffolding for some relationships
May 07, 2008 10:37 AM|LINK
Is it possible to supperss a relationship property where is does'nt make sense to have the relasionship showing. Take the Northwind database for instance and the Order entity <- Shipper entity relationship, in data entry navigating from a shipper to all it's orders is useless and could be confusing. All you might want to do in the shippers page is to add new shippers or update an existing shipper. so it would be nice to:
[Scaffold(false)]public object Orders; //public EntitySet<Order> Orders and then have DynamicData not display the column for that relationship the way it does for columns/ fileds in an entity.
It would be nice to be able to only show some filters not all of them as again in you model filtering on some things you would make no sense.
Regards
Steve
ASP.NET Dynamic Data
Always seeking an elegant solution.
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: How do you suppress scaffolding for some relationships
May 07, 2008 10:18 PM|LINK
Hi Steve,
Thanks for reporting this issue. It is a bug and we will get it addressed in the next build.
David
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: How do you suppress scaffolding for some relationships
May 07, 2008 10:25 PM|LINK
Thanks David
ASP.NET Dynamic Data
Always seeking an elegant solution.