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
- InvalidContentTypeException.cs
- CSharpCodeProvider.cs
- PagesChangedEventArgs.cs
- BitmapEffectGeneralTransform.cs
- TablePattern.cs
- InnerItemCollectionView.cs
- FileCodeGroup.cs
- CodeTypeReferenceExpression.cs
- versioninfo.cs
- ConstraintConverter.cs
- AddInController.cs
- SafeNativeMethods.cs
- InfiniteIntConverter.cs
- WebConfigurationFileMap.cs
- SqlMethods.cs
- streamingZipPartStream.cs
- RbTree.cs
- SharedPerformanceCounter.cs
- HostedHttpRequestAsyncResult.cs
- XmlHierarchyData.cs
- WindowsSysHeader.cs
- WindowsListViewGroup.cs
- EpmContentSerializer.cs
- MailWebEventProvider.cs
- ControlCodeDomSerializer.cs
- XmlSchemaImporter.cs
- IMembershipProvider.cs
- GenericEnumerator.cs
- Activity.cs
- WindowsSpinner.cs
- SHA384.cs
- FileStream.cs
- ObjectDataProvider.cs
- MetafileHeaderWmf.cs
- InstanceKey.cs
- _SslState.cs
- MimeTextImporter.cs
- VisualStyleElement.cs
- ToolboxItemWrapper.cs
- HybridDictionary.cs
- Helpers.cs
- ValueConversionAttribute.cs
- ViewGenerator.cs
- XmlSchemaValidator.cs
- mediaclock.cs
- TextWriterTraceListener.cs
- XmlSchemaInferenceException.cs
- FullTextState.cs
- XhtmlBasicTextViewAdapter.cs
- CloudCollection.cs
- DependencyStoreSurrogate.cs
- ParsedAttributeCollection.cs
- ConditionalBranch.cs
- SchemaContext.cs
- ReadOnlyDataSource.cs
- HttpContext.cs
- FileSystemInfo.cs
- XmlILTrace.cs
- _DomainName.cs
- IssuedTokenParametersElement.cs
- QueryAccessibilityHelpEvent.cs
- _LocalDataStoreMgr.cs
- FillBehavior.cs
- UInt16Converter.cs
- QueryOperator.cs
- ChameleonKey.cs
- EntityViewGenerationAttribute.cs
- SafeRegistryHandle.cs
- OdbcDataAdapter.cs
- ForeignKeyConstraint.cs
- XmlStreamNodeWriter.cs
- MeasureItemEvent.cs
- AddressUtility.cs
- MatchingStyle.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- LayoutExceptionEventArgs.cs
- XmlRawWriter.cs
- COM2ExtendedUITypeEditor.cs
- EventLogPermissionHolder.cs
- ThousandthOfEmRealPoints.cs
- MultiPropertyDescriptorGridEntry.cs
- RegexReplacement.cs
- ListControl.cs
- CoreSwitches.cs
- ConstructorNeedsTagAttribute.cs
- Identifier.cs
- ClientFormsAuthenticationCredentials.cs
- SettingsPropertyCollection.cs
- DefaultPropertyAttribute.cs
- SmtpAuthenticationManager.cs
- DbConnectionPoolOptions.cs
- LinqMaximalSubtreeNominator.cs
- OutputCacheProfileCollection.cs
- XamlContextStack.cs
- SwitchAttribute.cs
- XPathNavigatorReader.cs
- RawKeyboardInputReport.cs
- TrustManagerMoreInformation.cs
- DefaultWorkflowLoaderService.cs
- ContentOperations.cs