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
- NotImplementedException.cs
- HijriCalendar.cs
- BamlTreeUpdater.cs
- SchemaNotation.cs
- FunctionMappingTranslator.cs
- ListSourceHelper.cs
- TreeViewCancelEvent.cs
- XamlTypeWithExplicitNamespace.cs
- VisualProxy.cs
- ProgressBarAutomationPeer.cs
- SafeCryptoKeyHandle.cs
- ResolveResponse.cs
- DeriveBytes.cs
- MethodCallConverter.cs
- WmlPhoneCallAdapter.cs
- DataSet.cs
- MimeTypeMapper.cs
- ConfigXmlSignificantWhitespace.cs
- NativeBuffer.cs
- DescendentsWalkerBase.cs
- metadatamappinghashervisitor.cs
- wgx_exports.cs
- GorillaCodec.cs
- DataControlCommands.cs
- CachedPathData.cs
- BitmapMetadataEnumerator.cs
- ButtonStandardAdapter.cs
- ToolBar.cs
- ToolStripItemTextRenderEventArgs.cs
- ResourceContainer.cs
- ConfigPathUtility.cs
- BufferBuilder.cs
- CqlLexer.cs
- CellIdBoolean.cs
- printdlgexmarshaler.cs
- LockedActivityGlyph.cs
- DbMetaDataFactory.cs
- HttpConfigurationContext.cs
- BaseCollection.cs
- Sql8ConformanceChecker.cs
- TemplateModeChangedEventArgs.cs
- TextTreeText.cs
- DocumentXmlWriter.cs
- ComEventsSink.cs
- XPathSingletonIterator.cs
- SyndicationDeserializer.cs
- AppModelKnownContentFactory.cs
- SchemaNotation.cs
- HwndAppCommandInputProvider.cs
- HelpKeywordAttribute.cs
- StateWorkerRequest.cs
- CatalogPart.cs
- UnicodeEncoding.cs
- OledbConnectionStringbuilder.cs
- SoapAttributeAttribute.cs
- HierarchicalDataTemplate.cs
- SmtpNegotiateAuthenticationModule.cs
- FixedPageAutomationPeer.cs
- Rotation3DKeyFrameCollection.cs
- DPCustomTypeDescriptor.cs
- Object.cs
- DelegatingTypeDescriptionProvider.cs
- ToolStripRendererSwitcher.cs
- InternalConfigEventArgs.cs
- WorkflowServiceOperationListItem.cs
- OleDbErrorCollection.cs
- DataGridViewDataErrorEventArgs.cs
- COM2ICategorizePropertiesHandler.cs
- OwnerDrawPropertyBag.cs
- UnmanagedMemoryAccessor.cs
- TransformerTypeCollection.cs
- Size.cs
- TextFormattingConverter.cs
- ConfigurationValue.cs
- PropertyCollection.cs
- HWStack.cs
- MemberBinding.cs
- XmlExceptionHelper.cs
- XmlWriterDelegator.cs
- ValidatingReaderNodeData.cs
- IList.cs
- RectangleHotSpot.cs
- StopStoryboard.cs
- SplineQuaternionKeyFrame.cs
- NetWebProxyFinder.cs
- shaperfactory.cs
- ToolStripPanel.cs
- XmlSchemaGroupRef.cs
- DragEventArgs.cs
- QueryContinueDragEventArgs.cs
- WindowsStatusBar.cs
- KerberosSecurityTokenProvider.cs
- DataRelationCollection.cs
- HttpPostedFile.cs
- CompilerInfo.cs
- CreateSequence.cs
- Timer.cs
- ShapeTypeface.cs
- ModelTreeManager.cs
- ServiceMemoryGates.cs