Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SiteMapNodeItemEventArgs.cs
- PrivilegedConfigurationManager.cs
- NonBatchDirectoryCompiler.cs
- LoadWorkflowByInstanceKeyCommand.cs
- Decimal.cs
- Constraint.cs
- ListBox.cs
- XmlStreamStore.cs
- BooleanStorage.cs
- VirtualizingPanel.cs
- xmlglyphRunInfo.cs
- ClientTargetSection.cs
- ApplicationInterop.cs
- SiteMapDataSource.cs
- StructuredType.cs
- ResXBuildProvider.cs
- CFStream.cs
- DataGridHeaderBorder.cs
- QueryTaskGroupState.cs
- PropertyPathConverter.cs
- TextEditorSpelling.cs
- WpfPayload.cs
- SqlUDTStorage.cs
- CalendarDay.cs
- Base64Stream.cs
- DoubleLinkList.cs
- BaseHashHelper.cs
- OuterGlowBitmapEffect.cs
- SqlAggregateChecker.cs
- ToolStripStatusLabel.cs
- FileUpload.cs
- Route.cs
- ResourceReferenceKeyNotFoundException.cs
- XPathArrayIterator.cs
- COMException.cs
- EventDescriptor.cs
- HttpCachePolicy.cs
- GZipStream.cs
- DataRowView.cs
- DocumentXmlWriter.cs
- ProgressPage.cs
- Effect.cs
- HandlerBase.cs
- DataSetUtil.cs
- BrowserCapabilitiesCodeGenerator.cs
- ISO2022Encoding.cs
- DataGridState.cs
- ChildDocumentBlock.cs
- TableCellAutomationPeer.cs
- RegionData.cs
- RemotingConfigParser.cs
- ClientScriptManagerWrapper.cs
- XslTransform.cs
- IsolatedStorageFileStream.cs
- SqlCacheDependencySection.cs
- OperationAbortedException.cs
- DataGridRowAutomationPeer.cs
- ControlIdConverter.cs
- ReadOnlyMetadataCollection.cs
- UIElementIsland.cs
- DeviceContext2.cs
- ScriptRef.cs
- XmlAttributeAttribute.cs
- EncodingNLS.cs
- SerializationAttributes.cs
- StateBag.cs
- Graph.cs
- AuthenticationService.cs
- FilteredReadOnlyMetadataCollection.cs
- CommandID.cs
- MultiDataTrigger.cs
- CodeEntryPointMethod.cs
- UDPClient.cs
- ExceptionUtil.cs
- DbProviderFactory.cs
- SqlCharStream.cs
- SchemaTableColumn.cs
- RoleServiceManager.cs
- DataGridViewIntLinkedList.cs
- StylusTip.cs
- DesignerActionPropertyItem.cs
- FrameAutomationPeer.cs
- SeverityFilter.cs
- PropertySourceInfo.cs
- ScrollViewer.cs
- SiteMapNode.cs
- NamedPipeTransportManager.cs
- ReachSerializableProperties.cs
- CommandField.cs
- ContentPropertyAttribute.cs
- DetailsViewDeleteEventArgs.cs
- Unit.cs
- HttpClientCredentialType.cs
- CapabilitiesUse.cs
- ControlBuilder.cs
- MeasurementDCInfo.cs
- FontResourceCache.cs
- KeyFrames.cs
- FixedSOMSemanticBox.cs
- IImplicitResourceProvider.cs