Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExternalCalls.cs / 2 / ExternalCalls.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Mapping.ViewGeneration.Structures; using System.Data.Common.CommandTrees; using System.Data.Common.EntitySql; using System.Data.Metadata.Edm; using System.Diagnostics; using System.Collections.Generic; namespace System.Data.Mapping.ViewGeneration.Utils { // This class encapsulates "external" calls from view generation // to other System.Data.Entity components internal static class ExternalCalls { static internal bool IsReservedKeyword(string name) { return CqlLexer.IsReservedKeyword(name); } static internal DbCommandTree CompileView(string viewDef, MetadataWorkspace metadataWorkspace, ParserOptions.CompilationMode compilationMode) { Perspective perspective = new TargetPerspective(metadataWorkspace); ParserOptions parserOptions = new ParserOptions(); parserOptions.ParserCompilationMode = compilationMode; DbCommandTree expr = CqlQuery.Compile(viewDef, perspective, parserOptions, null, null, true); Debug.Assert(expr != null, "Compile returned empty tree?"); return expr; } static internal ItemCollection GetItemCollection(MetadataWorkspace workspace, DataSpace space) { return workspace.GetItemCollection(space); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Mapping.ViewGeneration.Structures; using System.Data.Common.CommandTrees; using System.Data.Common.EntitySql; using System.Data.Metadata.Edm; using System.Diagnostics; using System.Collections.Generic; namespace System.Data.Mapping.ViewGeneration.Utils { // This class encapsulates "external" calls from view generation // to other System.Data.Entity components internal static class ExternalCalls { static internal bool IsReservedKeyword(string name) { return CqlLexer.IsReservedKeyword(name); } static internal DbCommandTree CompileView(string viewDef, MetadataWorkspace metadataWorkspace, ParserOptions.CompilationMode compilationMode) { Perspective perspective = new TargetPerspective(metadataWorkspace); ParserOptions parserOptions = new ParserOptions(); parserOptions.ParserCompilationMode = compilationMode; DbCommandTree expr = CqlQuery.Compile(viewDef, perspective, parserOptions, null, null, true); Debug.Assert(expr != null, "Compile returned empty tree?"); return expr; } static internal ItemCollection GetItemCollection(MetadataWorkspace workspace, DataSpace space) { return workspace.GetItemCollection(space); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontCacheLogic.cs
- Point3DConverter.cs
- TrackingProfileCache.cs
- HttpCapabilitiesBase.cs
- Queue.cs
- RectangleF.cs
- SplashScreenNativeMethods.cs
- LookupBindingPropertiesAttribute.cs
- ExpressionBindings.cs
- UrlPath.cs
- CodeRemoveEventStatement.cs
- NumericUpDown.cs
- TemplateXamlParser.cs
- DrawingAttributesDefaultValueFactory.cs
- InputEventArgs.cs
- FormsAuthenticationUserCollection.cs
- EntityDesignerBuildProvider.cs
- remotingproxy.cs
- MemoryPressure.cs
- ConfigDefinitionUpdates.cs
- DataConnectionHelper.cs
- AttributeCollection.cs
- Logging.cs
- RequestQueue.cs
- unitconverter.cs
- OutputCacheSettings.cs
- Model3D.cs
- InvalidComObjectException.cs
- RangeValidator.cs
- XPathChildIterator.cs
- ImageMap.cs
- MultiSelectRootGridEntry.cs
- AutomationProperties.cs
- AttributeData.cs
- WSHttpBindingElement.cs
- DecoderBestFitFallback.cs
- Attributes.cs
- UnaryNode.cs
- CodeTypeParameterCollection.cs
- TextRangeSerialization.cs
- dtdvalidator.cs
- XmlNodeWriter.cs
- Matrix3DValueSerializer.cs
- FormDesigner.cs
- IDictionary.cs
- XPathNodeInfoAtom.cs
- PageSettings.cs
- TextTreeNode.cs
- Path.cs
- UnsafeNativeMethods.cs
- MultiTargetingUtil.cs
- PropertyEmitterBase.cs
- RelatedPropertyManager.cs
- ReadOnlyMetadataCollection.cs
- KnownTypesProvider.cs
- SafeSecurityHandles.cs
- InlineObject.cs
- DocumentViewer.cs
- AssertHelper.cs
- HttpResponse.cs
- SwitchLevelAttribute.cs
- Wrapper.cs
- MembershipSection.cs
- CollectionChangedEventManager.cs
- SizeAnimationUsingKeyFrames.cs
- PeerApplicationLaunchInfo.cs
- WebPartCatalogCloseVerb.cs
- SparseMemoryStream.cs
- User.cs
- NotifyInputEventArgs.cs
- XPathParser.cs
- Typography.cs
- StackSpiller.Bindings.cs
- ValueTypeFixupInfo.cs
- SqlClientMetaDataCollectionNames.cs
- CompositeDataBoundControl.cs
- CodeSubDirectoriesCollection.cs
- CreateSequence.cs
- Validator.cs
- EDesignUtil.cs
- SafeLocalAllocation.cs
- Int64AnimationUsingKeyFrames.cs
- MostlySingletonList.cs
- ClassGenerator.cs
- CounterCreationData.cs
- StringAnimationUsingKeyFrames.cs
- BulletedListEventArgs.cs
- WebRequestModuleElement.cs
- ErrorInfoXmlDocument.cs
- odbcmetadatacolumnnames.cs
- DesignTimeTemplateParser.cs
- NavigationPropertyEmitter.cs
- RuleConditionDialog.cs
- Lease.cs
- BooleanFacetDescriptionElement.cs
- ListControlConvertEventArgs.cs
- TimeSpan.cs
- ComPlusAuthorization.cs
- File.cs
- IgnoreSectionHandler.cs