svn path=/trunk/mcs/; revision=104772
[mono.git] / mcs / class / System.Data.Linq / System.Data.Linq / EntitySet.cs
1 //
2 // EntitySet.cs
3 //
4 // Author:
5 //   Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // Copyright (C) 2008 Novell, Inc.
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 using System;
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.ComponentModel;
34 using System.Linq;
35 using System.Linq.Expressions;
36
37 namespace System.Data.Linq
38 {
39         public sealed class EntitySet<TEntity> : IList, ICollection, IList<TEntity>, ICollection<TEntity>, IEnumerable<TEntity>, IEnumerable, IListSource where TEntity : class
40         {
41                 public EntitySet ()
42                 {
43                 }
44
45                 [MonoTODO]
46                 public EntitySet (Action<TEntity> onAdd, Action<TEntity> onRemove)
47                 {
48                         throw new NotImplementedException ();
49                 }
50
51                 public event ListChangedEventHandler ListChanged;
52
53                 [MonoTODO]
54                 public void Add (TEntity entity)
55                 {
56                         throw new NotImplementedException ();
57                 }
58
59                 [MonoTODO]
60                 int IList.Add (object value)
61                 {
62                         throw new NotImplementedException ();
63                 }
64
65                 [MonoTODO]
66                 public void AddRange (IEnumerable<TEntity> collection)
67                 {
68                         throw new NotImplementedException ();
69                 }
70
71                 [MonoTODO]
72                 public void Assign (IEnumerable<TEntity> entitySource)
73                 {
74                         throw new NotImplementedException ();
75                 }
76
77                 [MonoTODO]
78                 public void Clear ()
79                 {
80                         throw new NotImplementedException ();
81                 }
82
83                 [MonoTODO]
84                 public bool Contains (TEntity entity)
85                 {
86                         throw new NotImplementedException ();
87                 }
88
89                 [MonoTODO]
90                 bool IList.Contains (object value)
91                 {
92                         throw new NotImplementedException ();
93                 }
94
95                 [MonoTODO]
96                 public void CopyTo (TEntity [] array, int arrayIndex)
97                 {
98                         throw new NotImplementedException ();
99                 }
100
101                 [MonoTODO]
102                 void ICollection.CopyTo (Array array, int index)
103                 {
104                         throw new NotImplementedException ();
105                 }
106
107                 [MonoTODO]
108                 public IEnumerator<TEntity> GetEnumerator ()
109                 {
110                         throw new NotImplementedException ();
111                 }
112
113                 [MonoTODO]
114                 IEnumerator IEnumerable.GetEnumerator ()
115                 {
116                         throw new NotImplementedException ();
117                 }
118
119                 [MonoTODO]
120                 IList IListSource.GetList ()
121                 {
122                         throw new NotImplementedException ();
123                 }
124
125                 [MonoTODO]
126                 public IBindingList GetNewBindingList ()
127                 {
128                         throw new NotImplementedException ();
129                 }
130
131                 [MonoTODO]
132                 public int IndexOf (TEntity entity)
133                 {
134                         throw new NotImplementedException ();
135                 }
136
137                 [MonoTODO]
138                 int IList.IndexOf (object value)
139                 {
140                         throw new NotImplementedException ();
141                 }
142
143                 [MonoTODO]
144                 public void Insert (int index, TEntity entity)
145                 {
146                         throw new NotImplementedException ();
147                 }
148
149                 [MonoTODO]
150                 void IList.Insert (int index, object value)
151                 {
152                         throw new NotImplementedException ();
153                 }
154
155                 [MonoTODO]
156                 public void Load ()
157                 {
158                         throw new NotImplementedException ();
159                 }
160
161                 [MonoTODO]
162                 public bool Remove (TEntity entity)
163                 {
164                         throw new NotImplementedException ();
165                 }
166
167                 [MonoTODO]
168                 void IList.Remove (object value)
169                 {
170                         throw new NotImplementedException ();
171                 }
172
173                 [MonoTODO]
174                 public void RemoveAt (int index)
175                 {
176                         throw new NotImplementedException ();
177                 }
178
179                 [MonoTODO]
180                 public void SetSource (IEnumerable<TEntity> entitySource)
181                 {
182                         throw new NotImplementedException ();
183                 }
184
185                 [MonoTODO]
186                 bool IListSource.ContainsListCollection {
187                         get { throw new NotImplementedException (); }
188                 }
189
190                 [MonoTODO]
191                 public int Count {
192                         get { throw new NotImplementedException (); }
193                 }
194
195                 [MonoTODO]
196                 public bool HasLoadedOrAssignedValues {
197                         get { throw new NotImplementedException (); }
198                 }
199
200                 [MonoTODO]
201                 public bool IsDeferred {
202                         get { throw new NotImplementedException (); }
203                 }
204
205                 [MonoTODO]
206                 bool IList.IsFixedSize {
207                         get { throw new NotImplementedException (); }
208                 }
209
210                 [MonoTODO]
211                 bool ICollection<TEntity>.IsReadOnly {
212                         get { throw new NotImplementedException (); }
213                 }
214
215                 [MonoTODO]
216                 bool IList.IsReadOnly {
217                         get { throw new NotImplementedException (); }
218                 }
219
220                 [MonoTODO]
221                 bool ICollection.IsSynchronized {
222                         get { throw new NotImplementedException (); }
223                 }
224
225                 [MonoTODO]
226                 public TEntity this [int index] {
227                         get { throw new NotImplementedException (); }
228                         set { throw new NotImplementedException (); }
229                 }
230
231                 [MonoTODO]
232                 object IList.this [int index] {
233                         get { throw new NotImplementedException (); }
234                         set { throw new NotImplementedException (); }
235                 }
236
237                 [MonoTODO]
238                 object ICollection.SyncRoot {
239                         get { throw new NotImplementedException (); }
240                 }
241         }
242 }