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
- RootBrowserWindowAutomationPeer.cs
- FileDataSourceCache.cs
- DateTimeOffsetStorage.cs
- OleDbMetaDataFactory.cs
- DesignerValidationSummaryAdapter.cs
- EngineSite.cs
- StringStorage.cs
- WebPartTracker.cs
- AutomationPropertyInfo.cs
- ChangesetResponse.cs
- HttpCachePolicyElement.cs
- VersionPair.cs
- ToolStripDropDownItem.cs
- EventHandlersDesigner.cs
- NaturalLanguageHyphenator.cs
- DataPointer.cs
- PickDesigner.xaml.cs
- EnumMember.cs
- LongValidatorAttribute.cs
- HttpConfigurationSystem.cs
- SystemNetworkInterface.cs
- XmlnsPrefixAttribute.cs
- ToolStripKeyboardHandlingService.cs
- StringFormat.cs
- RewritingPass.cs
- CanonicalFontFamilyReference.cs
- DataObjectSettingDataEventArgs.cs
- ClientData.cs
- TriggerActionCollection.cs
- WebBrowserHelper.cs
- StylusLogic.cs
- HttpException.cs
- StylusPointProperty.cs
- CodeThrowExceptionStatement.cs
- PageCodeDomTreeGenerator.cs
- MultiSelectRootGridEntry.cs
- CommandPlan.cs
- IsolatedStorageFilePermission.cs
- CatalogPartChrome.cs
- WhitespaceRule.cs
- SmtpLoginAuthenticationModule.cs
- MILUtilities.cs
- followingsibling.cs
- EditingContext.cs
- ConnectionConsumerAttribute.cs
- InstanceKeyView.cs
- _NtlmClient.cs
- Geometry.cs
- MobileControlsSectionHandler.cs
- DiscriminatorMap.cs
- SigningCredentials.cs
- DependencyPropertyKind.cs
- COM2EnumConverter.cs
- StaticDataManager.cs
- OperationCanceledException.cs
- SignatureDescription.cs
- SurrogateEncoder.cs
- XmlUtil.cs
- RtfFormatStack.cs
- Error.cs
- TraceSection.cs
- XPathChildIterator.cs
- SqlAliasesReferenced.cs
- DbConnectionStringCommon.cs
- XmlTypeAttribute.cs
- Context.cs
- InvalidContentTypeException.cs
- SystemEvents.cs
- Ref.cs
- login.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- TemplateBuilder.cs
- PropertyRef.cs
- GroupByExpressionRewriter.cs
- VisualTreeUtils.cs
- DataSourceSerializationException.cs
- SimpleLine.cs
- AssemblyNameEqualityComparer.cs
- MatrixCamera.cs
- WebPartTracker.cs
- DrawingImage.cs
- WebPartMenu.cs
- AncestorChangedEventArgs.cs
- TextRangeEdit.cs
- IntPtr.cs
- XamlToRtfWriter.cs
- DecryptedHeader.cs
- VirtualizingStackPanel.cs
- XmlChildEnumerator.cs
- StateMachineHelpers.cs
- PropertySegmentSerializationProvider.cs
- PublisherIdentityPermission.cs
- SoapFormatter.cs
- PolyQuadraticBezierSegment.cs
- TextAnchor.cs
- SimpleLine.cs
- ListViewInsertEventArgs.cs
- PropertyCondition.cs
- MediaSystem.cs
- X509Certificate2Collection.cs