Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / DataOracleClient / System / Data / Common / DBSqlParserTableCollection.cs / 1 / DBSqlParserTableCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Data.OracleClient { using System; using System.Collections; using System.Diagnostics; using System.Text; //--------------------------------------------------------------------- // DbSqlParserColumnCollection // // A collection of parsed table references from DbSqlParser. // sealed internal class DbSqlParserTableCollection : CollectionBase { private Type ItemType { get { return typeof(DbSqlParserTable); } } internal DbSqlParserTable this[int i] { get { DbSqlParserTable value = (DbSqlParserTable)InnerList[i]; return value; } } internal DbSqlParserTable Add(DbSqlParserTable value) { OnValidate(value); InnerList.Add(value); return value; } internal DbSqlParserTable Add (string databaseName, string schemaName, string tableName, string correlationName) { DbSqlParserTable p = new DbSqlParserTable(databaseName, schemaName, tableName, correlationName); return Add(p); } protected override void OnValidate(Object value) { Debug.Assert (value != null, "may not add null objects to collection!"); Debug.Assert (ItemType.IsInstanceOfType(value), "object to add must be a DbSqlParserTable!"); } }; } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Data.OracleClient { using System; using System.Collections; using System.Diagnostics; using System.Text; //--------------------------------------------------------------------- // DbSqlParserColumnCollection // // A collection of parsed table references from DbSqlParser. // sealed internal class DbSqlParserTableCollection : CollectionBase { private Type ItemType { get { return typeof(DbSqlParserTable); } } internal DbSqlParserTable this[int i] { get { DbSqlParserTable value = (DbSqlParserTable)InnerList[i]; return value; } } internal DbSqlParserTable Add(DbSqlParserTable value) { OnValidate(value); InnerList.Add(value); return value; } internal DbSqlParserTable Add (string databaseName, string schemaName, string tableName, string correlationName) { DbSqlParserTable p = new DbSqlParserTable(databaseName, schemaName, tableName, correlationName); return Add(p); } protected override void OnValidate(Object value) { Debug.Assert (value != null, "may not add null objects to collection!"); Debug.Assert (ItemType.IsInstanceOfType(value), "object to add must be a DbSqlParserTable!"); } }; } // 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
- SHA512Managed.cs
- ConnectionPool.cs
- ComponentChangingEvent.cs
- ImportedNamespaceContextItem.cs
- CacheMode.cs
- RSAOAEPKeyExchangeFormatter.cs
- ScrollChangedEventArgs.cs
- DateTimeFormatInfoScanner.cs
- WebPartZoneCollection.cs
- ToolstripProfessionalRenderer.cs
- SQLInt64.cs
- PropertyChangedEventArgs.cs
- ThreadAttributes.cs
- glyphs.cs
- RightsManagementEncryptionTransform.cs
- Soap.cs
- ContentPlaceHolder.cs
- AutomationElementIdentifiers.cs
- ReadOnlyPropertyMetadata.cs
- ListDictionary.cs
- XmlDocumentFragment.cs
- GPStream.cs
- SiteMapProvider.cs
- _AutoWebProxyScriptEngine.cs
- EdmFunctionAttribute.cs
- MultiTrigger.cs
- CalendarDay.cs
- Thread.cs
- SqlCommandSet.cs
- ReceiveActivityValidator.cs
- StylusPlugin.cs
- DataGridColumnHeader.cs
- ZoneIdentityPermission.cs
- XpsResourceDictionary.cs
- LinkUtilities.cs
- InputLanguageCollection.cs
- LayoutEngine.cs
- AlignmentXValidation.cs
- HeaderCollection.cs
- HandledEventArgs.cs
- UnsafeNativeMethods.cs
- SchemaComplexType.cs
- RegexCapture.cs
- LiteralTextContainerControlBuilder.cs
- ApplicationDirectory.cs
- SourceFileBuildProvider.cs
- PrintDocument.cs
- TextEditorMouse.cs
- BitmapSourceSafeMILHandle.cs
- DrawingState.cs
- HighlightVisual.cs
- ComponentResourceKey.cs
- PostBackOptions.cs
- AspNetCompatibilityRequirementsAttribute.cs
- ByteStreamGeometryContext.cs
- ComponentResourceKeyConverter.cs
- Matrix3D.cs
- ScriptingScriptResourceHandlerSection.cs
- TargetException.cs
- COM2ExtendedTypeConverter.cs
- TraceRecord.cs
- LinkLabel.cs
- MarginCollapsingState.cs
- DetailsViewUpdateEventArgs.cs
- SafeCertificateStore.cs
- SafeCryptHandles.cs
- SelectionPatternIdentifiers.cs
- ItemList.cs
- AccessedThroughPropertyAttribute.cs
- DictionaryEditChange.cs
- DecoderReplacementFallback.cs
- MonthChangedEventArgs.cs
- SecUtil.cs
- RegexCompilationInfo.cs
- ListViewDeleteEventArgs.cs
- SBCSCodePageEncoding.cs
- OdbcConnectionPoolProviderInfo.cs
- ComponentEditorForm.cs
- MatrixKeyFrameCollection.cs
- PresentationSource.cs
- SingleAnimationBase.cs
- ListViewDataItem.cs
- SynchronizedRandom.cs
- TabControl.cs
- RawUIStateInputReport.cs
- ViewEventArgs.cs
- RequestBringIntoViewEventArgs.cs
- TrackingDataItemValue.cs
- OutputChannelBinder.cs
- WizardPanelChangingEventArgs.cs
- BufferedGraphicsContext.cs
- QuadraticBezierSegment.cs
- HttpConfigurationContext.cs
- FactoryGenerator.cs
- ExceptionUtil.cs
- PageAdapter.cs
- Quack.cs
- XamlPathDataSerializer.cs
- ColumnMap.cs
- StylusCollection.cs