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
- XPathNodeIterator.cs
- GeometryGroup.cs
- EnumMemberAttribute.cs
- _IPv6Address.cs
- WeakReferenceEnumerator.cs
- TaskCanceledException.cs
- ECDsa.cs
- TextServicesCompartment.cs
- ConfigXmlDocument.cs
- URIFormatException.cs
- CompilerWrapper.cs
- DataGridViewCheckBoxCell.cs
- StringConverter.cs
- TreeNodeSelectionProcessor.cs
- BindingNavigatorDesigner.cs
- DataGridViewHeaderCell.cs
- StylusDownEventArgs.cs
- ObjectDisposedException.cs
- JoinTreeNode.cs
- MetadataPropertyCollection.cs
- HostUtils.cs
- UnknownBitmapDecoder.cs
- ICspAsymmetricAlgorithm.cs
- ChangeTracker.cs
- InheritanceAttribute.cs
- IPCCacheManager.cs
- DbCommandTree.cs
- ImageFormat.cs
- RectangleGeometry.cs
- EncodingStreamWrapper.cs
- StringResourceManager.cs
- TextHidden.cs
- PropertyMap.cs
- Enum.cs
- SqlCacheDependencyDatabaseCollection.cs
- AssemblyCache.cs
- KeyedCollection.cs
- EntityClassGenerator.cs
- DataControlField.cs
- NativeCppClassAttribute.cs
- SynchronizationContextHelper.cs
- FormsAuthenticationModule.cs
- MethodBuilderInstantiation.cs
- SmiMetaDataProperty.cs
- TimeSpanStorage.cs
- HotCommands.cs
- COMException.cs
- ResourceManagerWrapper.cs
- CharUnicodeInfo.cs
- assertwrapper.cs
- XmlNodeComparer.cs
- TimelineGroup.cs
- SiblingIterators.cs
- RsaKeyGen.cs
- DataRelation.cs
- DbException.cs
- FillErrorEventArgs.cs
- PeerApplicationLaunchInfo.cs
- ItemsControl.cs
- PropertyOrder.cs
- CounterCreationData.cs
- WpfKnownType.cs
- LayoutDump.cs
- NavigationWindowAutomationPeer.cs
- MetadataCacheItem.cs
- WeakEventManager.cs
- WebControlAdapter.cs
- TransactionChannelListener.cs
- ParserHooks.cs
- RoleServiceManager.cs
- SqlSupersetValidator.cs
- InheritanceContextHelper.cs
- FlowDocument.cs
- DummyDataSource.cs
- BufferedResponseStream.cs
- StubHelpers.cs
- SettingsPropertyValue.cs
- HierarchicalDataBoundControl.cs
- SoapObjectWriter.cs
- COM2ExtendedUITypeEditor.cs
- XPathQueryGenerator.cs
- tooltip.cs
- KnownTypeDataContractResolver.cs
- SafeRightsManagementEnvironmentHandle.cs
- HttpModuleActionCollection.cs
- OrderedDictionary.cs
- XamlDesignerSerializationManager.cs
- ArrayExtension.cs
- TailCallAnalyzer.cs
- RectAnimationClockResource.cs
- HostedBindingBehavior.cs
- QueuePathEditor.cs
- StrongNameMembershipCondition.cs
- ColumnCollection.cs
- UriExt.cs
- MsmqTransportBindingElement.cs
- WebPartConnectionsConnectVerb.cs
- ParameterToken.cs
- ContentControl.cs
- StreamingContext.cs