Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / SqlClient / Common / Expressions.cs / 1305376 / 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 { #pragma warning disable 618 // Disable the 'obsolete' warning. internal InternalExpression(InternalExpressionType nt, Type type) : base ((ExpressionType)nt, type) { } #pragma warning restore 618 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 { #pragma warning disable 618 // Disable the 'obsolete' warning. internal InternalExpression(InternalExpressionType nt, Type type) : base ((ExpressionType)nt, type) { } #pragma warning restore 618 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
- SoapFault.cs
- validationstate.cs
- BitStack.cs
- WindowsTokenRoleProvider.cs
- ObjectListField.cs
- NamedPipeProcessProtocolHandler.cs
- AsyncCodeActivityContext.cs
- MatcherBuilder.cs
- Int32.cs
- FormsAuthenticationUser.cs
- ToolConsole.cs
- ActivityBindForm.cs
- TypeSystem.cs
- ExpressionEvaluator.cs
- RoleGroupCollection.cs
- XmlDictionaryString.cs
- WebControl.cs
- PropertyStore.cs
- TripleDES.cs
- GC.cs
- TargetException.cs
- ListBox.cs
- WebControlAdapter.cs
- GridViewPageEventArgs.cs
- WasAdminWrapper.cs
- MemoryRecordBuffer.cs
- XmlUtil.cs
- BlockUIContainer.cs
- HttpResponseInternalWrapper.cs
- ButtonChrome.cs
- unitconverter.cs
- GridViewUpdateEventArgs.cs
- RangeBase.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ConfigurationManagerHelper.cs
- XmlStringTable.cs
- ZoneMembershipCondition.cs
- HtmlMeta.cs
- SignerInfo.cs
- SQLCharsStorage.cs
- RubberbandSelector.cs
- TaskFormBase.cs
- odbcmetadatacolumnnames.cs
- RoleManagerSection.cs
- LayoutTableCell.cs
- PropertyStore.cs
- XmlSignatureProperties.cs
- FontCollection.cs
- OleDbRowUpdatingEvent.cs
- TextEditorThreadLocalStore.cs
- UntypedNullExpression.cs
- Crypto.cs
- FloaterParagraph.cs
- CrossContextChannel.cs
- PlanCompiler.cs
- BindToObject.cs
- DomainLiteralReader.cs
- XhtmlBasicImageAdapter.cs
- MiniLockedBorderGlyph.cs
- ImageField.cs
- PolicyManager.cs
- ping.cs
- FacetDescriptionElement.cs
- XmlDocument.cs
- SmiSettersStream.cs
- FilterableData.cs
- AssemblyCollection.cs
- AuthStoreRoleProvider.cs
- ZeroOpNode.cs
- Point4DConverter.cs
- XmlElementAttributes.cs
- MatrixCamera.cs
- SimpleType.cs
- QuadraticBezierSegment.cs
- WebConfigurationFileMap.cs
- EventsTab.cs
- DockProviderWrapper.cs
- StorageConditionPropertyMapping.cs
- SimpleBitVector32.cs
- NameSpaceEvent.cs
- TextTreeRootNode.cs
- ComEventsMethod.cs
- XD.cs
- OutputWindow.cs
- XamlSerializationHelper.cs
- Literal.cs
- PlanCompilerUtil.cs
- CheckBoxFlatAdapter.cs
- CloseSequence.cs
- ConfigurationElement.cs
- InertiaTranslationBehavior.cs
- AuthenticationModulesSection.cs
- GridViewColumnCollection.cs
- AxisAngleRotation3D.cs
- DuplicateContext.cs
- DrawingContextDrawingContextWalker.cs
- DataSourceHelper.cs
- DataPagerCommandEventArgs.cs
- Process.cs
- FilteredAttributeCollection.cs