Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DataSourceView.cs « System.Web.UI « System.Web « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73425482c22218c1768fe0f569ee39377767a47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// System.Web.UI.DataSourceView
//
// Authors:
//	Ben Maurer (bmaurer@users.sourceforge.net)
//
// (C) 2003 Ben Maurer
//

#if NET_2_0
using System.Collections;
using System.Collections.Specialized;
using System.Text;

namespace System.Web.UI {
	public abstract class DataSourceView
	{
		protected DataSourceView ()
		{
		}
		
		public virtual int Delete (IDictionary keys)
		{
			throw new NotSupportedException ();
		}
		
		public virtual int Insert (IDictionary values)
		{
			throw new NotSupportedException ();
		}
		
		public virtual int Update (IDictionary keys, IDictionary values)
		{
			throw new NotSupportedException ();
		}
		
		public abstract IEnumerable Select ();

		public virtual bool CanDelete { get { return false; } }
		public virtual bool CanInsert { get { return false; } }
		public virtual bool CanSort { get { return false; } }
		public virtual bool CanUpdate { get { return false; } }
		
		public virtual string Name { get { return ""; } }
		public virtual string SortExpression {
			get { throw new NotSupportedException (); }
			set { throw new NotSupportedException (); }
		}
	}
	
}
#endif