Code. Collaborate. Organize.
No Limits. Try it Today.
public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
System.Collections.IList visibleTables = Global.DefaultModel.VisibleTables;
if (visibleTables.Count == 0)
throw new InvalidOperationException("There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages.");
Menu1.DataSource = visibleTables;
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
C# 6: First reactions