Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WindowsToolbar.cs
- ToolStripInSituService.cs
- SQLString.cs
- RuntimeWrappedException.cs
- ConstructorExpr.cs
- TextBoxLine.cs
- BrushMappingModeValidation.cs
- ValuePattern.cs
- StorageMappingItemLoader.cs
- Span.cs
- TimeIntervalCollection.cs
- CaseCqlBlock.cs
- Rect3DConverter.cs
- ProviderCommandInfoUtils.cs
- SqlBuffer.cs
- XLinq.cs
- TracedNativeMethods.cs
- ToolStripStatusLabel.cs
- PolicyVersionConverter.cs
- PartialArray.cs
- TextProperties.cs
- ListBoxItem.cs
- BodyGlyph.cs
- DataReceivedEventArgs.cs
- TrayIconDesigner.cs
- CurrencyManager.cs
- DataControlImageButton.cs
- SchemaImporterExtensionElementCollection.cs
- TdsParameterSetter.cs
- PermissionListSet.cs
- StackBuilderSink.cs
- EnumUnknown.cs
- SHA384CryptoServiceProvider.cs
- SafeCryptContextHandle.cs
- AppPool.cs
- ActivityTrace.cs
- OdbcConnectionFactory.cs
- RoutedEventArgs.cs
- ProgressChangedEventArgs.cs
- SimpleHandlerFactory.cs
- OperationInvokerTrace.cs
- RawKeyboardInputReport.cs
- ContentHostHelper.cs
- Code.cs
- _RequestLifetimeSetter.cs
- TdsParserHelperClasses.cs
- DirectoryNotFoundException.cs
- DataTableMapping.cs
- DragStartedEventArgs.cs
- RepeaterCommandEventArgs.cs
- PageParser.cs
- IDQuery.cs
- ExceptionTranslationTable.cs
- ProfileServiceManager.cs
- AnnotationMap.cs
- ResourceKey.cs
- SecurityTokenResolver.cs
- ColumnCollection.cs
- TraceContext.cs
- QueryRewriter.cs
- ParserStreamGeometryContext.cs
- ExternalException.cs
- CultureSpecificStringDictionary.cs
- ArgumentsParser.cs
- ValidationErrorEventArgs.cs
- DataSourceHelper.cs
- SafeSerializationManager.cs
- HtmlControlPersistable.cs
- Tokenizer.cs
- Viewport3DVisual.cs
- webclient.cs
- MenuCommandsChangedEventArgs.cs
- XPathChildIterator.cs
- MbpInfo.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DictionaryContent.cs
- DataGridViewCellValidatingEventArgs.cs
- ApplicationInterop.cs
- Decoder.cs
- RightsManagementEncryptedStream.cs
- TcpSocketManager.cs
- ToolStripHighContrastRenderer.cs
- ClientBuildManagerCallback.cs
- PasswordRecovery.cs
- _NetworkingPerfCounters.cs
- Behavior.cs
- ColorConvertedBitmap.cs
- errorpatternmatcher.cs
- ReverseInheritProperty.cs
- MinimizableAttributeTypeConverter.cs
- JsonDataContract.cs
- DataSetFieldSchema.cs
- XdrBuilder.cs
- RequestNavigateEventArgs.cs
- TreeViewAutomationPeer.cs
- TableAdapterManagerMethodGenerator.cs
- SendMailErrorEventArgs.cs
- DataSourceControlBuilder.cs
- COAUTHINFO.cs
- DataGridDefaultColumnWidthTypeConverter.cs