Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / Expressions.cs / 1 / 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 { internal InternalExpression(InternalExpressionType nt, Type type) : base ((ExpressionType)nt, type) { } 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 { internal InternalExpression(InternalExpressionType nt, Type type) : base ((ExpressionType)nt, type) { } 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
- WindowsListViewItem.cs
- DrawingContext.cs
- DependencyObjectPropertyDescriptor.cs
- counter.cs
- LinqDataSourceValidationException.cs
- ContainerParagraph.cs
- ColorConverter.cs
- WindowsContainer.cs
- FormViewUpdatedEventArgs.cs
- FastEncoder.cs
- ValidationEventArgs.cs
- documentsequencetextview.cs
- ErrorTableItemStyle.cs
- SerializationEventsCache.cs
- TabControlCancelEvent.cs
- QilFunction.cs
- DataColumnMapping.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ExtractorMetadata.cs
- SourceFileBuildProvider.cs
- ButtonColumn.cs
- AdobeCFFWrapper.cs
- InputManager.cs
- DebugInfoGenerator.cs
- DragEvent.cs
- TemplateComponentConnector.cs
- AssemblyCache.cs
- Buffer.cs
- UIElement.cs
- StatusBarDrawItemEvent.cs
- TextBoxAutoCompleteSourceConverter.cs
- listviewsubitemcollectioneditor.cs
- WorkflowWebService.cs
- DataListItem.cs
- RSACryptoServiceProvider.cs
- UidPropertyAttribute.cs
- SoapReflectionImporter.cs
- XmlDocumentFragment.cs
- UpdateCompiler.cs
- BCLDebug.cs
- EventHandlerService.cs
- StatusBarDrawItemEvent.cs
- XmlRawWriterWrapper.cs
- SafeLocalMemHandle.cs
- Form.cs
- ResponseBodyWriter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SafeRightsManagementSessionHandle.cs
- AmbientProperties.cs
- PrePrepareMethodAttribute.cs
- SafeFileHandle.cs
- DuplicateWaitObjectException.cs
- Stack.cs
- DrawListViewItemEventArgs.cs
- SqlFactory.cs
- AppSettingsExpressionBuilder.cs
- ResXResourceReader.cs
- Wrapper.cs
- XPathNavigator.cs
- ScrollEventArgs.cs
- EastAsianLunisolarCalendar.cs
- storepermission.cs
- AppearanceEditorPart.cs
- EventRouteFactory.cs
- CompleteWizardStep.cs
- wmiprovider.cs
- IntersectQueryOperator.cs
- FileDialogCustomPlacesCollection.cs
- XmlChoiceIdentifierAttribute.cs
- PolyQuadraticBezierSegment.cs
- XmlNodeComparer.cs
- Semaphore.cs
- RouteUrlExpressionBuilder.cs
- TextTrailingCharacterEllipsis.cs
- SoapSchemaExporter.cs
- FormatterServices.cs
- LowerCaseStringConverter.cs
- SQLByteStorage.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SmtpNtlmAuthenticationModule.cs
- UnsafeNativeMethods.cs
- SymbolEqualComparer.cs
- IODescriptionAttribute.cs
- ArrangedElement.cs
- XmlHierarchyData.cs
- QueryGenerator.cs
- SoapDocumentServiceAttribute.cs
- DefinitionUpdate.cs
- ArgumentNullException.cs
- CellConstantDomain.cs
- BitStream.cs
- BitmapVisualManager.cs
- GeometryGroup.cs
- precedingquery.cs
- PasswordRecovery.cs
- WebPartUtil.cs
- Lease.cs
- CopyOfAction.cs
- SmiTypedGetterSetter.cs
- DrawingBrush.cs