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
- ScriptManagerProxy.cs
- CursorInteropHelper.cs
- Properties.cs
- EncryptedType.cs
- StringResourceManager.cs
- DataGridViewDataErrorEventArgs.cs
- HMACMD5.cs
- indexingfiltermarshaler.cs
- UrlUtility.cs
- GridEntry.cs
- PeerNameRegistration.cs
- RawStylusInput.cs
- CssStyleCollection.cs
- ResponseBodyWriter.cs
- ProcessHostServerConfig.cs
- SHA256Managed.cs
- ExceptionHandlerDesigner.cs
- MessageDispatch.cs
- EntityDataSource.cs
- ApplicationBuildProvider.cs
- Axis.cs
- FileNotFoundException.cs
- basenumberconverter.cs
- MemoryResponseElement.cs
- BaseTemplateCodeDomTreeGenerator.cs
- WindowsSolidBrush.cs
- EntityCommand.cs
- DispatcherProcessingDisabled.cs
- TableItemStyle.cs
- LostFocusEventManager.cs
- ScriptManager.cs
- HttpWebRequest.cs
- HandlerBase.cs
- ObjectPersistData.cs
- MetaChildrenColumn.cs
- DataList.cs
- EntryWrittenEventArgs.cs
- FilterQueryOptionExpression.cs
- ConfigXmlText.cs
- DescendantQuery.cs
- QueryCreatedEventArgs.cs
- DetailsViewRow.cs
- AccessControlList.cs
- ResourceSetExpression.cs
- DataGridViewSelectedRowCollection.cs
- QueryComponents.cs
- BinaryReader.cs
- RijndaelManaged.cs
- PermissionToken.cs
- IndentedWriter.cs
- CompressedStack.cs
- BadImageFormatException.cs
- TypeValidationEventArgs.cs
- ClickablePoint.cs
- DataRecordInternal.cs
- OdbcEnvironmentHandle.cs
- __Error.cs
- OpenTypeLayoutCache.cs
- JoinGraph.cs
- XmlSchemaParticle.cs
- Property.cs
- IListConverters.cs
- FindCriteriaApril2005.cs
- EntityTransaction.cs
- OrderingExpression.cs
- RuleProcessor.cs
- TypeInfo.cs
- WebPartTransformer.cs
- UnsafeNetInfoNativeMethods.cs
- EdmEntityTypeAttribute.cs
- ExplicitDiscriminatorMap.cs
- PropertyItemInternal.cs
- SoapIncludeAttribute.cs
- SecurityContextSecurityTokenResolver.cs
- ExcludePathInfo.cs
- DebuggerAttributes.cs
- COM2Properties.cs
- Site.cs
- ServicePrincipalNameElement.cs
- DiagnosticTraceSource.cs
- WebHttpBinding.cs
- PreservationFileReader.cs
- Itemizer.cs
- DockingAttribute.cs
- StrokeCollection2.cs
- DataBindingHandlerAttribute.cs
- URLMembershipCondition.cs
- DataTableMapping.cs
- BufferedGraphicsManager.cs
- Byte.cs
- StringConverter.cs
- Brush.cs
- MetafileHeader.cs
- ResXBuildProvider.cs
- ColorPalette.cs
- WebPartDisplayMode.cs
- DrawingCollection.cs
- UniqueContractNameValidationBehavior.cs
- BasicBrowserDialog.cs
- WebConfigurationHostFileChange.cs