a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web.DynamicData;
|
|
using System.Web.DynamicData.ModelProviders;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
using MonoTests.System.Web.DynamicData;
|
|
using MonoTests.ModelProviders;
|
|
using MonoTests.DataSource;
|
|
|
|
namespace MonoTests.Common
|
|
{
|
|
class TestDataContext2 : ITestDataContext
|
|
{
|
|
public const int TableFooBarNoScaffold = 0;
|
|
public const int TableAssociatedBar = 1;
|
|
|
|
public FooBarNoScaffold FooBarNoScaffold { get; set; }
|
|
public AssociatedBar AssociatedBar { get; set; }
|
|
|
|
#region ITestDataContext Members
|
|
|
|
public IList GetTableData (string tableName, DataSourceSelectArguments args, string where, ParameterCollection whereParams)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public List<DynamicDataTable> GetTables ()
|
|
{
|
|
var ret = new List<DynamicDataTable> ();
|
|
|
|
ret.Add (new TestDataTable<FooBarNoScaffold> ());
|
|
ret.Add (new TestDataTable<AssociatedBar> ());
|
|
|
|
return ret;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|