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
- IProvider.cs
- ElasticEase.cs
- FixedHighlight.cs
- PinnedBufferMemoryStream.cs
- InternalResources.cs
- DefaultSection.cs
- SendActivityEventArgs.cs
- ModelUIElement3D.cs
- TypeConverter.cs
- ComplusTypeValidator.cs
- PageParserFilter.cs
- TargetException.cs
- Polygon.cs
- MenuItemStyle.cs
- FileLogRecord.cs
- UserControlAutomationPeer.cs
- XamlInt32CollectionSerializer.cs
- DelimitedListTraceListener.cs
- NetDataContractSerializer.cs
- MenuBase.cs
- SelectedGridItemChangedEvent.cs
- Rijndael.cs
- CompensateDesigner.cs
- DbParameterHelper.cs
- DbTransaction.cs
- RepeaterDataBoundAdapter.cs
- SHA512Managed.cs
- DataListItem.cs
- ComboBox.cs
- PermissionToken.cs
- DirectoryNotFoundException.cs
- PersonalizableAttribute.cs
- COSERVERINFO.cs
- ColumnMapCopier.cs
- Encoding.cs
- ToolStripPanelCell.cs
- ComponentRenameEvent.cs
- BitmapEffectvisualstate.cs
- SeekableReadStream.cs
- RubberbandSelector.cs
- PublisherMembershipCondition.cs
- xml.cs
- RectValueSerializer.cs
- HideDisabledControlAdapter.cs
- AdornerDecorator.cs
- _ListenerResponseStream.cs
- ScrollItemProviderWrapper.cs
- InProcStateClientManager.cs
- VectorAnimationUsingKeyFrames.cs
- SiteMapPath.cs
- ConnectionConsumerAttribute.cs
- XmlRawWriterWrapper.cs
- MemberMemberBinding.cs
- WinFormsSpinner.cs
- DoubleCollectionValueSerializer.cs
- PropertyTabAttribute.cs
- ControlBindingsCollection.cs
- SvcMapFileLoader.cs
- ContentWrapperAttribute.cs
- ZipFileInfo.cs
- ServicesUtilities.cs
- WebServiceParameterData.cs
- TaskFormBase.cs
- Predicate.cs
- PointLightBase.cs
- XamlPointCollectionSerializer.cs
- LabelExpression.cs
- BaseParser.cs
- OnOperation.cs
- DataGridAutoFormatDialog.cs
- RotateTransform3D.cs
- CryptoProvider.cs
- ISessionStateStore.cs
- StoreContentChangedEventArgs.cs
- MSHTMLHost.cs
- QueueProcessor.cs
- DateTimeOffset.cs
- ContentPropertyAttribute.cs
- ModelUtilities.cs
- LogicalExpr.cs
- DES.cs
- BaseConfigurationRecord.cs
- Lasso.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- WebConvert.cs
- IsolatedStorageFilePermission.cs
- __TransparentProxy.cs
- PropertyPath.cs
- DataServiceExpressionVisitor.cs
- HtmlButton.cs
- TileModeValidation.cs
- _FtpControlStream.cs
- LostFocusEventManager.cs
- ElementProxy.cs
- SchemeSettingElement.cs
- TreeChangeInfo.cs
- ConnectorDragDropGlyph.cs
- TextProperties.cs
- AnnotationAuthorChangedEventArgs.cs
- SoapObjectReader.cs