EmployeeDynamicDataContainer.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using MonoTests.DataSource;
  9. namespace MonoTests.DataObjects
  10. {
  11. public class EmployeeDynamicDataContainer : DynamicDataContainer <Employee>
  12. {
  13. public override Type ContainedType
  14. {
  15. get
  16. {
  17. return typeof (Employee);
  18. }
  19. }
  20. public EmployeeDynamicDataContainer ()
  21. : this (null)
  22. {
  23. }
  24. public EmployeeDynamicDataContainer (string tableName)
  25. : base (tableName)
  26. {
  27. }
  28. public override int Update (IDictionary keys, IDictionary values, IDictionary oldValues)
  29. {
  30. throw new NotImplementedException ();
  31. }
  32. public override int Insert (IDictionary values)
  33. {
  34. throw new NotImplementedException ();
  35. }
  36. public override int Delete (IDictionary keys, IDictionary oldValues)
  37. {
  38. throw new NotImplementedException ();
  39. }
  40. public override IEnumerable Select (DataSourceSelectArguments args, string where, ParameterCollection whereParams)
  41. {
  42. throw new NotImplementedException ();
  43. }
  44. public override List<DynamicDataTable> GetTables ()
  45. {
  46. var ret = new List<DynamicDataTable> ();
  47. ret.Add (new EmployeeTable ());
  48. return ret;
  49. }
  50. }
  51. }