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
- StrokeIntersection.cs
- Mappings.cs
- CacheAxisQuery.cs
- InputProcessorProfiles.cs
- StringFunctions.cs
- TraceContext.cs
- TypedCompletedAsyncResult.cs
- PackUriHelper.cs
- StrongNameUtility.cs
- URLIdentityPermission.cs
- PartitionResolver.cs
- StreamInfo.cs
- ConditionalAttribute.cs
- ObjectNavigationPropertyMapping.cs
- SqlBulkCopyColumnMappingCollection.cs
- ModelService.cs
- LogExtent.cs
- SecurityCapabilities.cs
- StaticFileHandler.cs
- SHA1Managed.cs
- StorageConditionPropertyMapping.cs
- Mutex.cs
- HtmlInputReset.cs
- initElementDictionary.cs
- MoveSizeWinEventHandler.cs
- Convert.cs
- ParameterElementCollection.cs
- HyperLink.cs
- DesignerForm.cs
- FormatConvertedBitmap.cs
- LineBreak.cs
- MimeXmlReflector.cs
- ArgumentDesigner.xaml.cs
- Transform.cs
- TypeDescriptor.cs
- SoapInteropTypes.cs
- TableAdapterManagerGenerator.cs
- DocumentXPathNavigator.cs
- OracleColumn.cs
- BamlLocalizationDictionary.cs
- WindowsBrush.cs
- XappLauncher.cs
- HtmlEmptyTagControlBuilder.cs
- xmlNames.cs
- PersonalizationProviderHelper.cs
- wgx_render.cs
- StylusPointCollection.cs
- NamedPermissionSet.cs
- Page.cs
- SerializationEventsCache.cs
- HttpRuntime.cs
- SqlClientFactory.cs
- MulticastNotSupportedException.cs
- PtsCache.cs
- CanonicalFormWriter.cs
- DescriptionAttribute.cs
- CallbackValidator.cs
- XmlSerializerSection.cs
- Emitter.cs
- StateInitialization.cs
- OutputScopeManager.cs
- Switch.cs
- WorkflowRuntimeServiceElementCollection.cs
- DateBoldEvent.cs
- TextTreeUndo.cs
- RegistrationServices.cs
- AttachedAnnotation.cs
- ActivityMarkupSerializer.cs
- ErrorWebPart.cs
- EditorBrowsableAttribute.cs
- ToolStripLocationCancelEventArgs.cs
- XmlSchemaGroup.cs
- DeflateStream.cs
- SHA512CryptoServiceProvider.cs
- MetabaseSettingsIis7.cs
- Rect3D.cs
- EncoderBestFitFallback.cs
- HeaderElement.cs
- WebServiceMethodData.cs
- FileUpload.cs
- PageTheme.cs
- XmlNullResolver.cs
- BoolExpression.cs
- ValueSerializer.cs
- SchemaAttDef.cs
- UnsafeNativeMethods.cs
- AdornerPresentationContext.cs
- WrapPanel.cs
- CalendarAutoFormatDialog.cs
- WebChannelFactory.cs
- RuleSettingsCollection.cs
- StorageModelBuildProvider.cs
- RestClientProxyHandler.cs
- Size3D.cs
- EncodingInfo.cs
- TreePrinter.cs
- TemplateBindingExpression.cs
- TextDecorations.cs
- SqlCacheDependencySection.cs
- UshortList2.cs