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
- QueryNode.cs
- ContainerParagraph.cs
- SerialReceived.cs
- ChtmlTextWriter.cs
- RealProxy.cs
- HMACRIPEMD160.cs
- _ConnectionGroup.cs
- Italic.cs
- CreateUserWizard.cs
- Tool.cs
- XmlSerializerAssemblyAttribute.cs
- DataGridDetailsPresenterAutomationPeer.cs
- TransformationRules.cs
- NamespaceDisplay.xaml.cs
- PeerMaintainer.cs
- WriteTimeStream.cs
- StateDesigner.TransitionInfo.cs
- CodeIndexerExpression.cs
- DocumentXPathNavigator.cs
- PagedDataSource.cs
- MDIWindowDialog.cs
- FacetDescription.cs
- SecureStringHasher.cs
- CSharpCodeProvider.cs
- BaseDataListComponentEditor.cs
- OdbcParameterCollection.cs
- ExpressionVisitor.cs
- FormatterServices.cs
- ActivityInstance.cs
- Size.cs
- EventSinkHelperWriter.cs
- DESCryptoServiceProvider.cs
- DefaultTraceListener.cs
- Constants.cs
- InternalConfigSettingsFactory.cs
- DataBoundControlAdapter.cs
- DocumentViewerAutomationPeer.cs
- GroupBoxRenderer.cs
- DisableDpiAwarenessAttribute.cs
- Command.cs
- EntityViewGenerator.cs
- ConfigXmlDocument.cs
- XDRSchema.cs
- WorkflowTransactionService.cs
- WindowProviderWrapper.cs
- Visual3DCollection.cs
- ZoneLinkButton.cs
- DataServiceCollectionOfT.cs
- DetailsViewAutoFormat.cs
- SqlCommandSet.cs
- CodeAttachEventStatement.cs
- PathTooLongException.cs
- XamlInt32CollectionSerializer.cs
- SystemIcmpV4Statistics.cs
- ListViewSortEventArgs.cs
- HttpStaticObjectsCollectionBase.cs
- ArrayList.cs
- LogLogRecordHeader.cs
- ValueTypePropertyReference.cs
- RuleSetCollection.cs
- ValueType.cs
- MessageEnumerator.cs
- DeferredReference.cs
- HostedAspNetEnvironment.cs
- TextProperties.cs
- SymLanguageVendor.cs
- SiblingIterators.cs
- DataSourceCache.cs
- QueryOperationResponseOfT.cs
- HttpConfigurationContext.cs
- InlineCollection.cs
- RelativeSource.cs
- EntityProviderFactory.cs
- GradientBrush.cs
- ContainerVisual.cs
- UserPersonalizationStateInfo.cs
- SpellCheck.cs
- KeyedQueue.cs
- SplayTreeNode.cs
- HttpPostClientProtocol.cs
- DbMetaDataCollectionNames.cs
- TypefaceCollection.cs
- LinkArea.cs
- Version.cs
- hresults.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- TextComposition.cs
- XhtmlConformanceSection.cs
- RadioButtonPopupAdapter.cs
- ToolStripSystemRenderer.cs
- SliderAutomationPeer.cs
- NullableLongSumAggregationOperator.cs
- NavigationWindowAutomationPeer.cs
- returneventsaver.cs
- Documentation.cs
- XsltQilFactory.cs
- ReadOnlyDictionary.cs
- XPathDocument.cs
- FixUpCollection.cs
- WsdlInspector.cs