Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExternalCalls.cs / 1 / 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
- Errors.cs
- X509ChainElement.cs
- ReadonlyMessageFilter.cs
- ActivityMetadata.cs
- ZipIOExtraField.cs
- RequestTimeoutManager.cs
- ImmComposition.cs
- InvokePattern.cs
- MappingItemCollection.cs
- DataControlFieldCell.cs
- Base64Decoder.cs
- StreamingContext.cs
- ComboBoxHelper.cs
- LayoutTableCell.cs
- TreeNodeStyle.cs
- EventHandlersStore.cs
- LinkLabelLinkClickedEvent.cs
- OdbcEnvironmentHandle.cs
- InputProcessorProfilesLoader.cs
- DateBoldEvent.cs
- SystemIPInterfaceStatistics.cs
- _CookieModule.cs
- StringUtil.cs
- ConfigXmlComment.cs
- DetailsViewUpdatedEventArgs.cs
- ObjectHandle.cs
- Assert.cs
- TransformationRules.cs
- WebReferencesBuildProvider.cs
- InvalidDataContractException.cs
- FolderLevelBuildProviderCollection.cs
- BypassElement.cs
- StatusBarPanel.cs
- Model3DCollection.cs
- ContentPathSegment.cs
- GradientStop.cs
- FileClassifier.cs
- HashCryptoHandle.cs
- ModelItemKeyValuePair.cs
- SelectionUIService.cs
- OraclePermissionAttribute.cs
- ProgramNode.cs
- SqlDelegatedTransaction.cs
- SendMailErrorEventArgs.cs
- LayoutSettings.cs
- AvTraceDetails.cs
- WriteableOnDemandStream.cs
- MaskedTextProvider.cs
- SByteConverter.cs
- ProxyGenerator.cs
- Ipv6Element.cs
- SingleSelectRootGridEntry.cs
- Stylus.cs
- InplaceBitmapMetadataWriter.cs
- ZoneLinkButton.cs
- Compensation.cs
- BrowserCapabilitiesCompiler.cs
- DateTimeValueSerializerContext.cs
- SrgsElementFactoryCompiler.cs
- ContainerFilterService.cs
- Variant.cs
- ExtendedTransformFactory.cs
- ThemeDictionaryExtension.cs
- EpmSourceTree.cs
- DataGridAutoFormatDialog.cs
- TrustManagerPromptUI.cs
- RelationshipConstraintValidator.cs
- XmlAttributeCollection.cs
- SpotLight.cs
- TileModeValidation.cs
- MDIClient.cs
- UiaCoreProviderApi.cs
- CustomActivityDesigner.cs
- ParameterInfo.cs
- XmlObjectSerializerContext.cs
- BinaryObjectReader.cs
- DataKeyCollection.cs
- SqlDataSourceQueryConverter.cs
- LogicalExpr.cs
- Registry.cs
- AsyncPostBackTrigger.cs
- WindowsRichEdit.cs
- Directory.cs
- TabPage.cs
- _SSPIWrapper.cs
- ElementFactory.cs
- Stream.cs
- ClientSponsor.cs
- DependencyObjectPropertyDescriptor.cs
- EntityTypeEmitter.cs
- RayMeshGeometry3DHitTestResult.cs
- WebMessageEncoderFactory.cs
- WmlListAdapter.cs
- _SslState.cs
- Point4D.cs
- TextBox.cs
- PrtCap_Public.cs
- NavigatingCancelEventArgs.cs
- NestedContainer.cs
- ControlParser.cs