2 // System.Web.UI.DataSourceView
5 // Ben Maurer (bmaurer@users.sourceforge.net)
11 using System.Collections;
12 using System.Collections.Specialized;
15 namespace System.Web.UI {
16 public abstract class DataSourceView
18 protected DataSourceView ()
22 public virtual int Delete (IDictionary keys)
24 throw new NotSupportedException ();
27 public virtual int Insert (IDictionary values)
29 throw new NotSupportedException ();
32 public virtual int Update (IDictionary keys, IDictionary values)
34 throw new NotSupportedException ();
37 public abstract IEnumerable Select ();
39 public virtual bool CanDelete { get { return false; } }
40 public virtual bool CanInsert { get { return false; } }
41 public virtual bool CanSort { get { return false; } }
42 public virtual bool CanUpdate { get { return false; } }
44 public virtual string Name { get { return ""; } }
45 public virtual string SortExpression {
46 get { throw new NotSupportedException (); }
47 set { throw new NotSupportedException (); }