Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DoubleAnimation.cs
- CodeIndexerExpression.cs
- WebPartConnectionsEventArgs.cs
- CreateUserWizardAutoFormat.cs
- XmlSchemaGroup.cs
- IdleTimeoutMonitor.cs
- BackStopAuthenticationModule.cs
- NativeMethods.cs
- DataGridViewRow.cs
- PageThemeBuildProvider.cs
- HWStack.cs
- NativeMethods.cs
- OdbcConnectionFactory.cs
- InfoCardClaim.cs
- ByteAnimationBase.cs
- XmlExpressionDumper.cs
- SqlBuilder.cs
- EmulateRecognizeCompletedEventArgs.cs
- SafeBitVector32.cs
- PartialCachingControl.cs
- DrawingVisualDrawingContext.cs
- Rectangle.cs
- XmlSchemaObject.cs
- GridViewRowEventArgs.cs
- RouteValueDictionary.cs
- XmlDsigSep2000.cs
- NodeLabelEditEvent.cs
- AspCompat.cs
- OneOfScalarConst.cs
- EmbeddedMailObjectsCollection.cs
- ReturnType.cs
- UInt64.cs
- WSHttpBindingBaseElement.cs
- InternalEnumValidator.cs
- SafeLocalMemHandle.cs
- AuthenticationService.cs
- XPathBinder.cs
- Control.cs
- SelectionRange.cs
- LocalizableAttribute.cs
- ClientSideQueueItem.cs
- SessionState.cs
- XmlMemberMapping.cs
- SafeEventLogReadHandle.cs
- ConfigurationProperty.cs
- SqlDependencyListener.cs
- SecurityKeyUsage.cs
- SmiGettersStream.cs
- SmtpFailedRecipientException.cs
- PropertyGeneratedEventArgs.cs
- StylusPointProperties.cs
- InternalTypeHelper.cs
- FontFamily.cs
- NativeMethods.cs
- WebPartVerbCollection.cs
- XPathNode.cs
- DocumentAutomationPeer.cs
- InvalidDataException.cs
- SQLSingleStorage.cs
- mansign.cs
- ModelEditingScope.cs
- BuilderPropertyEntry.cs
- TreeNode.cs
- webeventbuffer.cs
- XmlQueryOutput.cs
- ISAPIApplicationHost.cs
- VisualState.cs
- SystemFonts.cs
- BooleanExpr.cs
- TraceLevelStore.cs
- shaper.cs
- HuffCodec.cs
- ProfileGroupSettingsCollection.cs
- OrderedDictionaryStateHelper.cs
- FilteredAttributeCollection.cs
- ClassDataContract.cs
- XmlDataSourceView.cs
- DeclarativeCatalogPartDesigner.cs
- Context.cs
- NamespaceList.cs
- PeerHopCountAttribute.cs
- DataBoundControlAdapter.cs
- DesignerView.xaml.cs
- DBConnection.cs
- BaseTemplateBuildProvider.cs
- XmlIlVisitor.cs
- SQLDecimalStorage.cs
- QueryCacheKey.cs
- WorkflowServiceBuildProvider.cs
- SmtpNegotiateAuthenticationModule.cs
- DispatcherTimer.cs
- METAHEADER.cs
- PropertyStore.cs
- FixedDocumentPaginator.cs
- SignalGate.cs
- VectorKeyFrameCollection.cs
- SecurityChannelListener.cs
- UserCancellationException.cs
- SqlCommandBuilder.cs
- SqlProvider.cs