DbDataUpdatableRecord.cs 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. //
  2. // System.Data.Common.DbDataUpdatableRecord.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2003
  8. //
  9. //
  10. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  11. //
  12. // Permission is hereby granted, free of charge, to any person obtaining
  13. // a copy of this software and associated documentation files (the
  14. // "Software"), to deal in the Software without restriction, including
  15. // without limitation the rights to use, copy, modify, merge, publish,
  16. // distribute, sublicense, and/or sell copies of the Software, and to
  17. // permit persons to whom the Software is furnished to do so, subject to
  18. // the following conditions:
  19. //
  20. // The above copyright notice and this permission notice shall be
  21. // included in all copies or substantial portions of the Software.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  27. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  28. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  29. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30. //
  31. #if NET_2_0
  32. using System.ComponentModel;
  33. namespace System.Data.Common {
  34. public class DbDataUpdatableRecord : IDataUpdatableRecord, IDataRecord, ISetTypedData, ICustomTypeDescriptor, IGetTypedData
  35. {
  36. #region Properties
  37. [MonoTODO]
  38. public virtual int FieldCount {
  39. get { throw new NotImplementedException (); }
  40. }
  41. [MonoTODO]
  42. public virtual object this [string x] {
  43. get { throw new NotImplementedException (); }
  44. }
  45. [MonoTODO]
  46. public virtual object this [int x] {
  47. get { throw new NotImplementedException (); }
  48. }
  49. [MonoTODO]
  50. public virtual bool Updatable {
  51. get { throw new NotImplementedException (); }
  52. }
  53. #endregion // Properties
  54. #region Methods
  55. [MonoTODO]
  56. public virtual bool GetBoolean (int i)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO]
  61. public virtual byte GetByte (int i)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. public virtual long GetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. public virtual char GetChar (int i)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. public virtual long GetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. public virtual IDataReader GetData (int i)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. public virtual string GetDataTypeName (int i)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. [MonoTODO]
  91. public virtual DateTime GetDateTime (int i)
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. public virtual decimal GetDecimal (int i)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. [MonoTODO]
  101. public virtual double GetDouble (int i)
  102. {
  103. throw new NotImplementedException ();
  104. }
  105. [MonoTODO]
  106. public virtual Type GetFieldType (int i)
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. [MonoTODO]
  111. public virtual float GetFloat (int i)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. [MonoTODO]
  116. public virtual Guid GetGuid (int i)
  117. {
  118. throw new NotImplementedException ();
  119. }
  120. [MonoTODO]
  121. public virtual short GetInt16 (int i)
  122. {
  123. throw new NotImplementedException ();
  124. }
  125. [MonoTODO]
  126. public virtual int GetInt32 (int i)
  127. {
  128. throw new NotImplementedException ();
  129. }
  130. [MonoTODO]
  131. public virtual long GetInt64 (int i)
  132. {
  133. throw new NotImplementedException ();
  134. }
  135. [MonoTODO]
  136. public virtual string GetName (int i)
  137. {
  138. throw new NotImplementedException ();
  139. }
  140. [MonoTODO]
  141. public virtual object GetObjectRef (int i)
  142. {
  143. throw new NotImplementedException ();
  144. }
  145. [MonoTODO]
  146. public virtual int GetOrdinal (string name)
  147. {
  148. throw new NotImplementedException ();
  149. }
  150. [MonoTODO]
  151. public virtual string GetString (int i)
  152. {
  153. throw new NotImplementedException ();
  154. }
  155. [MonoTODO]
  156. public virtual object GetValue (int i)
  157. {
  158. throw new NotImplementedException ();
  159. }
  160. [MonoTODO]
  161. public virtual int GetValues (object[] values)
  162. {
  163. throw new NotImplementedException ();
  164. }
  165. [MonoTODO]
  166. AttributeCollection ICustomTypeDescriptor.GetAttributes ()
  167. {
  168. throw new NotImplementedException ();
  169. }
  170. [MonoTODO]
  171. string ICustomTypeDescriptor.GetClassName ()
  172. {
  173. throw new NotImplementedException ();
  174. }
  175. [MonoTODO]
  176. string ICustomTypeDescriptor.GetComponentName ()
  177. {
  178. throw new NotImplementedException ();
  179. }
  180. [MonoTODO]
  181. TypeConverter ICustomTypeDescriptor.GetConverter ()
  182. {
  183. throw new NotImplementedException ();
  184. }
  185. [MonoTODO]
  186. EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
  187. {
  188. throw new NotImplementedException ();
  189. }
  190. [MonoTODO]
  191. PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
  192. {
  193. throw new NotImplementedException ();
  194. }
  195. [MonoTODO]
  196. object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
  197. {
  198. throw new NotImplementedException ();
  199. }
  200. [MonoTODO]
  201. EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
  202. {
  203. throw new NotImplementedException ();
  204. }
  205. [MonoTODO]
  206. EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes)
  207. {
  208. throw new NotImplementedException ();
  209. }
  210. [MonoTODO]
  211. PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
  212. {
  213. throw new NotImplementedException ();
  214. }
  215. [MonoTODO]
  216. PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes)
  217. {
  218. throw new NotImplementedException ();
  219. }
  220. [MonoTODO]
  221. object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
  222. {
  223. throw new NotImplementedException ();
  224. }
  225. [MonoTODO]
  226. int IDataUpdatableRecord.SetValues (object[] values)
  227. {
  228. throw new NotImplementedException ();
  229. }
  230. [MonoTODO]
  231. public virtual bool IsDBNull (int i)
  232. {
  233. throw new NotImplementedException ();
  234. }
  235. [MonoTODO]
  236. public virtual bool IsSetAsDefault (int i)
  237. {
  238. throw new NotImplementedException ();
  239. }
  240. [MonoTODO]
  241. public virtual void SetBoolean (int i, bool value)
  242. {
  243. throw new NotImplementedException ();
  244. }
  245. [MonoTODO]
  246. public virtual void SetByte (int i, byte value)
  247. {
  248. throw new NotImplementedException ();
  249. }
  250. [MonoTODO]
  251. public virtual void SetBytes (int i, long dataIndex, byte[] buffer, int bufferIndex, int length)
  252. {
  253. throw new NotImplementedException ();
  254. }
  255. [MonoTODO]
  256. public virtual void SetChar (int i, char value)
  257. {
  258. throw new NotImplementedException ();
  259. }
  260. [MonoTODO]
  261. public virtual void SetChars (int i, long dataIndex, char[] buffer, int bufferIndex, int length)
  262. {
  263. throw new NotImplementedException ();
  264. }
  265. [MonoTODO]
  266. public virtual void SetDateTime (int i, DateTime value)
  267. {
  268. throw new NotImplementedException ();
  269. }
  270. [MonoTODO]
  271. public virtual void SetDecimal (int i, decimal value)
  272. {
  273. throw new NotImplementedException ();
  274. }
  275. [MonoTODO]
  276. public virtual void SetDefault (int i)
  277. {
  278. throw new NotImplementedException ();
  279. }
  280. [MonoTODO]
  281. public virtual void SetDouble (int i, double value)
  282. {
  283. throw new NotImplementedException ();
  284. }
  285. [MonoTODO]
  286. public virtual void SetFloat (int i, float value)
  287. {
  288. throw new NotImplementedException ();
  289. }
  290. [MonoTODO]
  291. public virtual void SetGuid (int i, Guid value)
  292. {
  293. throw new NotImplementedException ();
  294. }
  295. [MonoTODO]
  296. public virtual void SetInt16 (int i, short value)
  297. {
  298. throw new NotImplementedException ();
  299. }
  300. [MonoTODO]
  301. public virtual void SetInt32 (int i, int value)
  302. {
  303. throw new NotImplementedException ();
  304. }
  305. [MonoTODO]
  306. public virtual void SetInt64 (int i, long value)
  307. {
  308. throw new NotImplementedException ();
  309. }
  310. [MonoTODO]
  311. public virtual void SetObjectRef (int i, object o)
  312. {
  313. throw new NotImplementedException ();
  314. }
  315. [MonoTODO]
  316. public virtual void SetString (int i, string value)
  317. {
  318. throw new NotImplementedException ();
  319. }
  320. [MonoTODO]
  321. public virtual void SetValue (int i, object value)
  322. {
  323. throw new NotImplementedException ();
  324. }
  325. [MonoTODO]
  326. public virtual int SetValues (int i, object[] value)
  327. {
  328. throw new NotImplementedException ();
  329. }
  330. #endregion // Methods
  331. }
  332. }
  333. #endif // NET_2_0