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
- NameValueFileSectionHandler.cs
- FixedTextPointer.cs
- SourceSwitch.cs
- TemplatedWizardStep.cs
- LocalizationParserHooks.cs
- CardSpacePolicyElement.cs
- ColumnHeaderConverter.cs
- PaintEvent.cs
- Ipv6Element.cs
- ReferentialConstraint.cs
- AxisAngleRotation3D.cs
- DeflateEmulationStream.cs
- CellTreeNode.cs
- XmlSchemaExternal.cs
- DataControlField.cs
- PropertyChangedEventArgs.cs
- TraceSection.cs
- XmlDownloadManager.cs
- SafeArrayTypeMismatchException.cs
- XmlDigitalSignatureProcessor.cs
- Helpers.cs
- ColorBlend.cs
- MLangCodePageEncoding.cs
- PathFigure.cs
- RegistrationServices.cs
- Parser.cs
- Quaternion.cs
- UniqueConstraint.cs
- SettingsPropertyIsReadOnlyException.cs
- AdCreatedEventArgs.cs
- Transform.cs
- ItemsPanelTemplate.cs
- ComponentChangedEvent.cs
- SafePointer.cs
- NavigatorOutput.cs
- FaultContext.cs
- MgmtConfigurationRecord.cs
- TraceContextEventArgs.cs
- StorageEndPropertyMapping.cs
- ExceptionValidationRule.cs
- LogicalChannelCollection.cs
- ConfigurationSection.cs
- Errors.cs
- CommonGetThemePartSize.cs
- Configuration.cs
- EventMap.cs
- MappingException.cs
- BindingObserver.cs
- FormParameter.cs
- PartialCachingAttribute.cs
- CodeIdentifier.cs
- VoiceObjectToken.cs
- Restrictions.cs
- XmlILIndex.cs
- XmlNodeList.cs
- TransactionFlowOption.cs
- PerformanceCounterPermissionAttribute.cs
- SafeMarshalContext.cs
- ManagedFilter.cs
- PublisherMembershipCondition.cs
- DigitalSignatureProvider.cs
- _ConnectStream.cs
- TypeReference.cs
- MimeTextImporter.cs
- HtmlDocument.cs
- XmlSerializationReader.cs
- FieldBuilder.cs
- DecoderReplacementFallback.cs
- StaticResourceExtension.cs
- SrgsElementFactory.cs
- EditorPart.cs
- Baml2006KnownTypes.cs
- XmlSchemaSubstitutionGroup.cs
- FindCriteriaApril2005.cs
- ConfigurationConverterBase.cs
- CommandConverter.cs
- MissingMethodException.cs
- DecoratedNameAttribute.cs
- VariableExpressionConverter.cs
- CodeCatchClauseCollection.cs
- HopperCache.cs
- SchemaCollectionPreprocessor.cs
- RegexNode.cs
- ScaleTransform.cs
- peernodeimplementation.cs
- AtomServiceDocumentSerializer.cs
- HandledEventArgs.cs
- FormViewInsertedEventArgs.cs
- AnyReturnReader.cs
- LongValidator.cs
- DataComponentMethodGenerator.cs
- Size3DValueSerializer.cs
- SelectionRange.cs
- ContentDefinition.cs
- ValueHandle.cs
- WebBaseEventKeyComparer.cs
- ConfigurationStrings.cs
- ModifierKeysValueSerializer.cs
- XsltInput.cs
- ITreeGenerator.cs