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
- Point3DValueSerializer.cs
- InvalidPropValue.cs
- EnumDataContract.cs
- SvcMapFile.cs
- Int64AnimationBase.cs
- ClientData.cs
- CollectionDataContract.cs
- KeySpline.cs
- ReferenceEqualityComparer.cs
- UniqueIdentifierService.cs
- ObjectQuery_EntitySqlExtensions.cs
- GridView.cs
- DBCSCodePageEncoding.cs
- TreeViewAutomationPeer.cs
- BaseInfoTable.cs
- ParallelEnumerableWrapper.cs
- ReadOnlyPropertyMetadata.cs
- DbMetaDataColumnNames.cs
- MSHTMLHost.cs
- StringDictionary.cs
- XmlAttributeAttribute.cs
- ObjectListFieldCollection.cs
- NegatedCellConstant.cs
- ResourceKey.cs
- ColorAnimationUsingKeyFrames.cs
- ExtensionQuery.cs
- ContentFileHelper.cs
- CornerRadiusConverter.cs
- RuleSettings.cs
- ServiceParser.cs
- Binding.cs
- DataTablePropertyDescriptor.cs
- ReferenceConverter.cs
- ReadOnlyDataSource.cs
- TimeSpanOrInfiniteValidator.cs
- _NativeSSPI.cs
- ThaiBuddhistCalendar.cs
- Inline.cs
- PagedControl.cs
- EventListenerClientSide.cs
- DropSource.cs
- DecimalKeyFrameCollection.cs
- DataGridCellAutomationPeer.cs
- FirstMatchCodeGroup.cs
- MetadataItemCollectionFactory.cs
- BinaryNode.cs
- SqlBulkCopyColumnMapping.cs
- RelationshipConstraintValidator.cs
- DataSourceProvider.cs
- BasicDesignerLoader.cs
- DataBindingExpressionBuilder.cs
- FrameworkElementFactoryMarkupObject.cs
- AuthStoreRoleProvider.cs
- ControlPager.cs
- CustomCredentialPolicy.cs
- DataGridPagerStyle.cs
- FilterFactory.cs
- ReceiveCompletedEventArgs.cs
- IdentitySection.cs
- OracleParameterCollection.cs
- RootBrowserWindowProxy.cs
- FixedSOMPageConstructor.cs
- DbConnectionPoolGroup.cs
- EdmRelationshipRoleAttribute.cs
- ParseHttpDate.cs
- ClientRuntimeConfig.cs
- EmptyStringExpandableObjectConverter.cs
- RuntimeWrappedException.cs
- DecodeHelper.cs
- TriState.cs
- RegisteredArrayDeclaration.cs
- CalendarData.cs
- HttpClientProtocol.cs
- DBBindings.cs
- PageEventArgs.cs
- ElementHostAutomationPeer.cs
- SerializerDescriptor.cs
- XMLUtil.cs
- DataBoundControlActionList.cs
- StoreItemCollection.Loader.cs
- Executor.cs
- User.cs
- PageRequestManager.cs
- Activation.cs
- PermissionAttributes.cs
- OledbConnectionStringbuilder.cs
- HttpModuleAction.cs
- DecodeHelper.cs
- ThaiBuddhistCalendar.cs
- TabPage.cs
- CharacterMetrics.cs
- WindowsScrollBarBits.cs
- AssemblyAttributes.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- LightweightCodeGenerator.cs
- HtmlGenericControl.cs
- DataTableReader.cs
- baseaxisquery.cs
- XmlComment.cs
- StrokeNode.cs