Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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
}
}