Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / SchemaContext.cs / 2 / SchemaContext.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Common.Utils; using System.Text; using System.Data.Mapping.ViewGeneration.Structures; using System.Diagnostics; using System.Data.Metadata.Edm; namespace System.Data.Mapping.ViewGeneration { // This class captures all the relevant information about a schema // e.g., metadata information, whether we want query views or update // views, and the result of validation internal class SchemaContext : InternalBase { #region Constructor // effects: Encapsulates the various metadata information public SchemaContext(ViewTarget viewTarget, MetadataWorkspace workspace) { m_viewTarget = viewTarget; Debug.Assert(workspace != null, "workspace should never be null"); m_workspace = workspace; } #endregion #region Fields private ViewTarget m_viewTarget; private MetadataWorkspace m_workspace; #endregion #region Properties internal ViewTarget ViewTarget { get { return m_viewTarget; } } internal MetadataWorkspace MetadataWorkspace { get { return m_workspace; } } #endregion #region String methods internal override void ToCompactString(StringBuilder builder) { StringUtil.FormatStringBuilder(builder, "ViewTarget = {0}", m_viewTarget); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Common.Utils; using System.Text; using System.Data.Mapping.ViewGeneration.Structures; using System.Diagnostics; using System.Data.Metadata.Edm; namespace System.Data.Mapping.ViewGeneration { // This class captures all the relevant information about a schema // e.g., metadata information, whether we want query views or update // views, and the result of validation internal class SchemaContext : InternalBase { #region Constructor // effects: Encapsulates the various metadata information public SchemaContext(ViewTarget viewTarget, MetadataWorkspace workspace) { m_viewTarget = viewTarget; Debug.Assert(workspace != null, "workspace should never be null"); m_workspace = workspace; } #endregion #region Fields private ViewTarget m_viewTarget; private MetadataWorkspace m_workspace; #endregion #region Properties internal ViewTarget ViewTarget { get { return m_viewTarget; } } internal MetadataWorkspace MetadataWorkspace { get { return m_workspace; } } #endregion #region String methods internal override void ToCompactString(StringBuilder builder) { StringUtil.FormatStringBuilder(builder, "ViewTarget = {0}", m_viewTarget); } #endregion } } // 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
- TreeView.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- LassoSelectionBehavior.cs
- BamlLocalizableResource.cs
- TrackingLocationCollection.cs
- IriParsingElement.cs
- ImageButton.cs
- metadatamappinghashervisitor.cs
- GlyphRunDrawing.cs
- MetadataArtifactLoaderCompositeFile.cs
- WebPartEventArgs.cs
- WindowsSysHeader.cs
- NegotiateStream.cs
- HotSpotCollectionEditor.cs
- KnownAssembliesSet.cs
- CommandConverter.cs
- SettingsPropertyCollection.cs
- ReadOnlyDictionary.cs
- MetadataCollection.cs
- MenuItem.cs
- SecurityTokenAuthenticator.cs
- GenericIdentity.cs
- QuaternionAnimationBase.cs
- XmlSchemaDocumentation.cs
- ExpressionBuilder.cs
- SchemaCollectionCompiler.cs
- GridViewUpdatedEventArgs.cs
- InfoCardRSACryptoProvider.cs
- TraceXPathNavigator.cs
- SuppressMergeCheckAttribute.cs
- XmlDocument.cs
- ColorConvertedBitmap.cs
- SocketInformation.cs
- MouseOverProperty.cs
- TypeUtil.cs
- TTSEvent.cs
- TraceLog.cs
- ISFTagAndGuidCache.cs
- SqlWriter.cs
- ConnectionConsumerAttribute.cs
- Calendar.cs
- DataSetSchema.cs
- DBSqlParser.cs
- Dynamic.cs
- SchemaHelper.cs
- InputScopeNameConverter.cs
- DataGridHelper.cs
- DemultiplexingClientMessageFormatter.cs
- ViewStateException.cs
- TraceFilter.cs
- ListDictionary.cs
- DataGridViewCellStyleConverter.cs
- DoubleAnimationBase.cs
- RowTypePropertyElement.cs
- FtpRequestCacheValidator.cs
- InstanceCreationEditor.cs
- FormatVersion.cs
- CompilerScopeManager.cs
- OleDbDataReader.cs
- EpmHelper.cs
- DeviceSpecificDialogCachedState.cs
- CssTextWriter.cs
- MulticastNotSupportedException.cs
- QueryContext.cs
- SoapException.cs
- WindowsGraphicsWrapper.cs
- __ComObject.cs
- WindowsSlider.cs
- DataSourceView.cs
- AttachInfo.cs
- CanonicalFontFamilyReference.cs
- DockAndAnchorLayout.cs
- InputMethodStateTypeInfo.cs
- VarInfo.cs
- updatecommandorderer.cs
- HttpVersion.cs
- DataStorage.cs
- CompiledAction.cs
- ContextMenu.cs
- TreeNode.cs
- XmlNodeComparer.cs
- DataGridSortCommandEventArgs.cs
- BasicHttpSecurityMode.cs
- ServicePointManager.cs
- PopOutPanel.cs
- TypeConverterHelper.cs
- XsltOutput.cs
- DependencyObjectProvider.cs
- CodePropertyReferenceExpression.cs
- WpfSharedXamlSchemaContext.cs
- MobileTextWriter.cs
- TaiwanLunisolarCalendar.cs
- StreamWriter.cs
- TableCellCollection.cs
- UInt64Storage.cs
- SupportsEventValidationAttribute.cs
- Animatable.cs
- AuthenticationConfig.cs
- DiagnosticEventProvider.cs
- PropertyChangedEventArgs.cs