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
- KeyGestureConverter.cs
- RewritingSimplifier.cs
- EventBookmark.cs
- XamlVector3DCollectionSerializer.cs
- FunctionNode.cs
- AdapterDictionary.cs
- PointHitTestResult.cs
- XmlSchemaDocumentation.cs
- NumericPagerField.cs
- StickyNoteAnnotations.cs
- DataServiceStreamResponse.cs
- XmlValidatingReaderImpl.cs
- TransformationRules.cs
- XmlHierarchicalDataSourceView.cs
- XmlWrappingReader.cs
- Point.cs
- AxHostDesigner.cs
- PathParser.cs
- MarkupCompiler.cs
- MenuItem.cs
- EncoderParameter.cs
- DiscoveryEndpointElement.cs
- RecordConverter.cs
- SerialPinChanges.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PropertyReferenceSerializer.cs
- DocumentViewerHelper.cs
- MsmqAuthenticationMode.cs
- Int32RectConverter.cs
- C14NUtil.cs
- MarginCollapsingState.cs
- Menu.cs
- ContractNamespaceAttribute.cs
- EncoderParameter.cs
- SpeakProgressEventArgs.cs
- LineGeometry.cs
- DataGrid.cs
- GridViewItemAutomationPeer.cs
- OleDbErrorCollection.cs
- DeadCharTextComposition.cs
- Link.cs
- SetStoryboardSpeedRatio.cs
- NativeMethods.cs
- OperationContext.cs
- WebPartEditVerb.cs
- SecurityDescriptor.cs
- Object.cs
- ExpressionBuilderContext.cs
- FtpWebRequest.cs
- SHA1Managed.cs
- FieldReference.cs
- ConnectionPoolManager.cs
- NodeLabelEditEvent.cs
- ConsumerConnectionPointCollection.cs
- ObjectConverter.cs
- DataTable.cs
- JpegBitmapEncoder.cs
- SafeMILHandle.cs
- Grid.cs
- mansign.cs
- ToolStripItemClickedEventArgs.cs
- MetadataItemEmitter.cs
- DataControlCommands.cs
- QueryableFilterRepeater.cs
- EntityContainerEmitter.cs
- commandenforcer.cs
- ProbeRequestResponseAsyncResult.cs
- CompilerTypeWithParams.cs
- PagedDataSource.cs
- ObjectList.cs
- GorillaCodec.cs
- ConfigXmlDocument.cs
- DbConnectionPoolGroup.cs
- SerializableAttribute.cs
- StyleHelper.cs
- ValidationSummary.cs
- IPHostEntry.cs
- DataProtection.cs
- ControlBindingsCollection.cs
- SoapSchemaExporter.cs
- WorkflowViewStateService.cs
- TableItemStyle.cs
- ValueChangedEventManager.cs
- ParseElement.cs
- FlowDocumentView.cs
- ObjectToken.cs
- QuaternionIndependentAnimationStorage.cs
- HttpChannelHelper.cs
- PersistenceTypeAttribute.cs
- WindowAutomationPeer.cs
- JsonReaderWriterFactory.cs
- CodeDirectiveCollection.cs
- AsyncStreamReader.cs
- SqlGenericUtil.cs
- WebZone.cs
- ContentOperations.cs
- InheritedPropertyChangedEventArgs.cs
- MenuTracker.cs
- AttributeUsageAttribute.cs
- PageMediaType.cs