Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / Expressions.cs / 1305376 / Expressions.cs
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq.Expressions; using System.Linq; using System.Reflection; using System.Text; using System.Data.Linq; namespace System.Data.Linq.SqlClient { // SQL Client extensions to ExpressionType internal enum InternalExpressionType { Known = 2000, LinkedTable = 2001 } abstract internal class InternalExpression : Expression { #pragma warning disable 618 // Disable the 'obsolete' warning. internal InternalExpression(InternalExpressionType nt, Type type) : base ((ExpressionType)nt, type) { } #pragma warning restore 618 internal static KnownExpression Known(SqlExpression expr) { return new KnownExpression(expr, expr.ClrType); } internal static KnownExpression Known(SqlNode node, Type type) { return new KnownExpression(node, type); } } internal sealed class KnownExpression : InternalExpression { SqlNode node; internal KnownExpression(SqlNode node, Type type) : base(InternalExpressionType.Known, type) { this.node = node; } internal SqlNode Node { get { return this.node; } } } internal sealed class LinkedTableExpression : InternalExpression { private SqlLink link; private ITable table; internal LinkedTableExpression(SqlLink link, ITable table, Type type) : base(InternalExpressionType.LinkedTable, type) { this.link = link; this.table = table; } internal SqlLink Link { get {return this.link;} } internal ITable Table { get {return this.table;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq.Expressions; using System.Linq; using System.Reflection; using System.Text; using System.Data.Linq; namespace System.Data.Linq.SqlClient { // SQL Client extensions to ExpressionType internal enum InternalExpressionType { Known = 2000, LinkedTable = 2001 } abstract internal class InternalExpression : Expression { #pragma warning disable 618 // Disable the 'obsolete' warning. internal InternalExpression(InternalExpressionType nt, Type type) : base ((ExpressionType)nt, type) { } #pragma warning restore 618 internal static KnownExpression Known(SqlExpression expr) { return new KnownExpression(expr, expr.ClrType); } internal static KnownExpression Known(SqlNode node, Type type) { return new KnownExpression(node, type); } } internal sealed class KnownExpression : InternalExpression { SqlNode node; internal KnownExpression(SqlNode node, Type type) : base(InternalExpressionType.Known, type) { this.node = node; } internal SqlNode Node { get { return this.node; } } } internal sealed class LinkedTableExpression : InternalExpression { private SqlLink link; private ITable table; internal LinkedTableExpression(SqlLink link, ITable table, Type type) : base(InternalExpressionType.LinkedTable, type) { this.link = link; this.table = table; } internal SqlLink Link { get {return this.link;} } internal ITable Table { get {return this.table;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrimitiveDataContract.cs
- _HTTPDateParse.cs
- ResourceWriter.cs
- CompiledRegexRunner.cs
- GlyphsSerializer.cs
- NamespaceEmitter.cs
- ReflectEventDescriptor.cs
- StatusBarAutomationPeer.cs
- GrammarBuilderBase.cs
- TableDetailsCollection.cs
- OleDbDataAdapter.cs
- DbConnectionPoolCounters.cs
- CellLabel.cs
- CultureInfo.cs
- NullableConverter.cs
- FilterQuery.cs
- Localizer.cs
- EntityContainerRelationshipSetEnd.cs
- WebPartZoneCollection.cs
- TrackBarDesigner.cs
- TableLayout.cs
- PiiTraceSource.cs
- SecurityTokenProvider.cs
- XmlILIndex.cs
- FormsAuthenticationUserCollection.cs
- RelationshipSet.cs
- _ConnectStream.cs
- XmlException.cs
- PersonalizationStateInfoCollection.cs
- TemplateField.cs
- TreeView.cs
- CategoryEditor.cs
- DesignerVerbCollection.cs
- BindingManagerDataErrorEventArgs.cs
- InputElement.cs
- FileNotFoundException.cs
- OperationInfoBase.cs
- WeakEventTable.cs
- UserControl.cs
- DaylightTime.cs
- CanExecuteRoutedEventArgs.cs
- X509Utils.cs
- NamespaceTable.cs
- TraceHandlerErrorFormatter.cs
- ConfigurationElementCollection.cs
- WorkflowViewElement.cs
- TdsParameterSetter.cs
- SqlClientWrapperSmiStreamChars.cs
- RectAnimationClockResource.cs
- PassportAuthentication.cs
- precedingquery.cs
- MULTI_QI.cs
- SectionVisual.cs
- EventLogPermissionEntryCollection.cs
- InterleavedZipPartStream.cs
- HtmlInputButton.cs
- DataBindingHandlerAttribute.cs
- RowUpdatedEventArgs.cs
- OpenTypeLayout.cs
- NullableFloatMinMaxAggregationOperator.cs
- _NegoStream.cs
- TrackingStringDictionary.cs
- TextDecorationCollection.cs
- RelationshipNavigation.cs
- StickyNoteHelper.cs
- DPTypeDescriptorContext.cs
- CommonGetThemePartSize.cs
- Size3D.cs
- DataColumnChangeEvent.cs
- DynamicQueryableWrapper.cs
- CodeExporter.cs
- DefaultBindingPropertyAttribute.cs
- TCEAdapterGenerator.cs
- CodeTypeReferenceExpression.cs
- RedistVersionInfo.cs
- IProvider.cs
- DataGridColumnFloatingHeader.cs
- DataKey.cs
- ServiceModelConfigurationSectionCollection.cs
- DeviceOverridableAttribute.cs
- QilExpression.cs
- DataServiceException.cs
- ResourceCategoryAttribute.cs
- XPathScanner.cs
- AsyncPostBackErrorEventArgs.cs
- AppDomainAttributes.cs
- DupHandleConnectionReader.cs
- Types.cs
- CollectionChangeEventArgs.cs
- GridView.cs
- ImageAttributes.cs
- ValidatorCompatibilityHelper.cs
- LabelLiteral.cs
- ArrayConverter.cs
- ObjectViewEntityCollectionData.cs
- lengthconverter.cs
- KeyboardDevice.cs
- ReadOnlyDataSource.cs
- ECDiffieHellman.cs
- NativeCppClassAttribute.cs