mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* DynamicValidator.cs: initial implementation * DynamicDataManager.cs: implemented OnLoad. Better implementation of RegisterControl * DynamicDataExtensions.cs: implemented FindDataSourceControl. 2009-10-02 Marek Habersack <[email protected]> * DynamicValidatorTest.cs: added. 2009-10-02 Marek Habersack <[email protected]> * GridView.cs: added two 3.5 properties - SelectedPersistedDataKey and IPersistedSelector.DataKey. * BaseDataBoundControl.cs: slight optimizations to FindDataSource svn path=/trunk/mcs/; revision=143278
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
<%@ Application Language="C#" %>
|
|
<%@ Import Namespace="System.Web.Routing" %>
|
|
<%@ Import Namespace="System.Web.DynamicData" %>
|
|
<%@ Import Namespace="MonoTests.DataObjects" %>
|
|
<%@ Import Namespace="MonoTests.DataSource" %>
|
|
<%@ Import Namespace="MonoTests.ModelProviders" %>
|
|
<%@ Import Namespace="MonoTests.Common" %>
|
|
|
|
<script RunAt="server">
|
|
|
|
void RegisterRoutes (RouteCollection routes) {
|
|
var provider = new DynamicDataContainerModelProvider<EmployeesDataContext> ();
|
|
provider.ResolveAssociations ();
|
|
Utils.RegisterContext (provider, new ContextConfiguration () { ScaffoldAllTables = true }, true);
|
|
|
|
var provider2 = new DynamicDataContainerModelProvider<TestDataContext3> ();
|
|
provider2.ResolveAssociations ();
|
|
Utils.RegisterContext (provider2, new ContextConfiguration () { ScaffoldAllTables = true }, true);
|
|
|
|
var provider3 = new DynamicDataContainerModelProvider<TestDataContext4> ();
|
|
provider2.ResolveAssociations ();
|
|
Utils.RegisterContext (provider3, new ContextConfiguration () { ScaffoldAllTables = true }, true);
|
|
|
|
routes.Add (new DynamicDataRoute ("{table}/{action}.aspx") {
|
|
Constraints = new RouteValueDictionary (new { action = "List|Details|Edit|Insert" }),
|
|
Model = MetaModel.Default
|
|
});
|
|
}
|
|
|
|
void Application_Start (object sender, EventArgs e) {
|
|
RegisterRoutes (RouteTable.Routes);
|
|
}
|
|
</script>
|
|
|