5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2008 Novell, Inc.
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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.
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.ComponentModel;
35 using System.Linq.Expressions;
37 namespace System.Data.Linq
39 public sealed class EntitySet<TEntity> : IList, ICollection, IList<TEntity>, ICollection<TEntity>, IEnumerable<TEntity>, IEnumerable, IListSource where TEntity : class
46 public EntitySet (Action<TEntity> onAdd, Action<TEntity> onRemove)
48 throw new NotImplementedException ();
51 public event ListChangedEventHandler ListChanged;
54 public void Add (TEntity entity)
56 throw new NotImplementedException ();
60 int IList.Add (object value)
62 throw new NotImplementedException ();
66 public void AddRange (IEnumerable<TEntity> collection)
68 throw new NotImplementedException ();
72 public void Assign (IEnumerable<TEntity> entitySource)
74 throw new NotImplementedException ();
80 throw new NotImplementedException ();
84 public bool Contains (TEntity entity)
86 throw new NotImplementedException ();
90 bool IList.Contains (object value)
92 throw new NotImplementedException ();
96 public void CopyTo (TEntity [] array, int arrayIndex)
98 throw new NotImplementedException ();
102 void ICollection.CopyTo (Array array, int index)
104 throw new NotImplementedException ();
108 public IEnumerator<TEntity> GetEnumerator ()
110 throw new NotImplementedException ();
114 IEnumerator IEnumerable.GetEnumerator ()
116 throw new NotImplementedException ();
120 IList IListSource.GetList ()
122 throw new NotImplementedException ();
126 public IBindingList GetNewBindingList ()
128 throw new NotImplementedException ();
132 public int IndexOf (TEntity entity)
134 throw new NotImplementedException ();
138 int IList.IndexOf (object value)
140 throw new NotImplementedException ();
144 public void Insert (int index, TEntity entity)
146 throw new NotImplementedException ();
150 void IList.Insert (int index, object value)
152 throw new NotImplementedException ();
158 throw new NotImplementedException ();
162 public bool Remove (TEntity entity)
164 throw new NotImplementedException ();
168 void IList.Remove (object value)
170 throw new NotImplementedException ();
174 public void RemoveAt (int index)
176 throw new NotImplementedException ();
180 public void SetSource (IEnumerable<TEntity> entitySource)
182 throw new NotImplementedException ();
186 bool IListSource.ContainsListCollection {
187 get { throw new NotImplementedException (); }
192 get { throw new NotImplementedException (); }
196 public bool HasLoadedOrAssignedValues {
197 get { throw new NotImplementedException (); }
201 public bool IsDeferred {
202 get { throw new NotImplementedException (); }
206 bool IList.IsFixedSize {
207 get { throw new NotImplementedException (); }
211 bool ICollection<TEntity>.IsReadOnly {
212 get { throw new NotImplementedException (); }
216 bool IList.IsReadOnly {
217 get { throw new NotImplementedException (); }
221 bool ICollection.IsSynchronized {
222 get { throw new NotImplementedException (); }
226 public TEntity this [int index] {
227 get { throw new NotImplementedException (); }
228 set { throw new NotImplementedException (); }
232 object IList.this [int index] {
233 get { throw new NotImplementedException (); }
234 set { throw new NotImplementedException (); }
238 object ICollection.SyncRoot {
239 get { throw new NotImplementedException (); }