diff options
author | Jérémie Laval <jeremie.laval@gmail.com> | 2011-01-21 16:55:55 +0300 |
---|---|---|
committer | Jérémie Laval <jeremie.laval@gmail.com> | 2011-01-22 04:21:12 +0300 |
commit | b6dcc8e3af536e3c36d625b7eca1bb8da7306c6c (patch) | |
tree | 03641d408efa471f8f07a5b4e875c3997f27eb92 /mcs/class/WebMatrix.Data | |
parent | 104510d8e27761ac88295c6050cc362ae9633c1c (diff) |
Stub DynamicRecord
Diffstat (limited to 'mcs/class/WebMatrix.Data')
4 files changed, 137 insertions, 1 deletions
diff --git a/mcs/class/WebMatrix.Data/Makefile b/mcs/class/WebMatrix.Data/Makefile index 56a592f9e1c..017f8d0ec05 100644 --- a/mcs/class/WebMatrix.Data/Makefile +++ b/mcs/class/WebMatrix.Data/Makefile @@ -6,5 +6,5 @@ LIBRARY = WebMatrix.Data.dll include ../../build/library.make -LIB_MCS_FLAGS += -r:$(corlib) -r:System.dll -r:System.Data.dll +LIB_MCS_FLAGS += -r:$(corlib) -r:System.dll -r:System.Data.dll -r:System.Core.dll TEST_MCS_FLAGS += -r:System.dll -r:System.Data.dll diff --git a/mcs/class/WebMatrix.Data/WebMatrix.Data.dll.sources b/mcs/class/WebMatrix.Data/WebMatrix.Data.dll.sources index a150d920560..892d9262b54 100644 --- a/mcs/class/WebMatrix.Data/WebMatrix.Data.dll.sources +++ b/mcs/class/WebMatrix.Data/WebMatrix.Data.dll.sources @@ -2,3 +2,4 @@ ../../build/common/Locale.cs Assembly/AssemblyInfo.cs WebMatrix.Data/ConnectionEventArgs.cs +WebMatrix.Data/DynamicRecord.cs diff --git a/mcs/class/WebMatrix.Data/WebMatrix.Data/ConnectionEventArgs.cs b/mcs/class/WebMatrix.Data/WebMatrix.Data/ConnectionEventArgs.cs index d0c9091b15e..83c45be9b22 100644 --- a/mcs/class/WebMatrix.Data/WebMatrix.Data/ConnectionEventArgs.cs +++ b/mcs/class/WebMatrix.Data/WebMatrix.Data/ConnectionEventArgs.cs @@ -1,3 +1,4 @@ +// // ConnectionEventArgs.cs // // Copyright (c) 2011 Novell diff --git a/mcs/class/WebMatrix.Data/WebMatrix.Data/DynamicRecord.cs b/mcs/class/WebMatrix.Data/WebMatrix.Data/DynamicRecord.cs new file mode 100644 index 00000000000..e18d2265dc2 --- /dev/null +++ b/mcs/class/WebMatrix.Data/WebMatrix.Data/DynamicRecord.cs @@ -0,0 +1,134 @@ +// +// DynamicRecord.cs +// +// Copyright (c) 2011 Novell +// +// Authors: +// Jérémie "garuma" Laval +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +// + +#if NET_4_0 + +using System; +using System.Dynamic; +using System.Data.Common; +using System.Collections.Generic; +using System.ComponentModel; + +namespace WebMatrix.Data +{ + public sealed class DynamicRecord : DynamicObject, ICustomTypeDescriptor + { + internal DynamicRecord () + { + } + + public IList<string> Columns { + get; + private set; + } + + public dynamic this[string name] { + get { + return null; + } + } + + public dynamic this[int index] { + get { + return null; + } + } + + public override IEnumerable<string> GetDynamicMemberNames () + { + return null; + } + + public override bool TryGetMember (GetMemberBinder binder, out object result) + { + result = null; + return false; + } + + AttributeCollection ICustomTypeDescriptor.GetAttributes () + { + return null; + } + + string ICustomTypeDescriptor.GetClassName () + { + return null; + } + + string ICustomTypeDescriptor.GetComponentName () + { + return null; + } + + TypeConverter ICustomTypeDescriptor.GetConverter () + { + return null; + } + + EventDescriptor ICustomTypeDescriptor.GetDefaultEvent () + { + return null; + } + + PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty () + { + return null; + } + + Object ICustomTypeDescriptor.GetEditor (Type editorBaseType) + { + return null; + } + + Object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd) + { + return null; + } + + EventDescriptorCollection ICustomTypeDescriptor.GetEvents () + { + return null; + } + + EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes) + { + return null; + } + + PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties () + { + return null; + } + + PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute[] attributes) + { + return null; + } + } +} + +#endif
\ No newline at end of file |