Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / SSDLGenerator / RelationshipDetailsCollection.cs / 3 / RelationshipDetailsCollection.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Xml; using System.Data.Common; using System.Globalization; using System.Data; namespace System.Data.Entity.Design.SsdlGenerator { ////// Strongly type data table for holding the RelationshipDetails /// [Serializable] internal sealed class RelationshipDetailsCollection : System.Data.DataTable, System.Collections.IEnumerable { [NonSerialized] private System.Data.DataColumn _columnPKCatalog; [NonSerialized] private System.Data.DataColumn _columnPKSchema; [NonSerialized] private System.Data.DataColumn _columnPKTable; [NonSerialized] private System.Data.DataColumn _columnPKColumn; [NonSerialized] private System.Data.DataColumn _columnFKCatalog; [NonSerialized] private System.Data.DataColumn _columnFKSchema; [NonSerialized] private System.Data.DataColumn _columnFKTable; [NonSerialized] private System.Data.DataColumn _columnFKColumn; [NonSerialized] private System.Data.DataColumn _columnOrdinal; [NonSerialized] private System.Data.DataColumn _columnRelationshipName; [NonSerialized] private System.Data.DataColumn _columnRelationshipId; [NonSerialized] private System.Data.DataColumn _columnRelationshipIsCascadeDelete; ////// Constructs a RelationsipDetailsDataTable /// public RelationshipDetailsCollection() { this.TableName = "RelationshipDetails"; // had to remove these because of an fxcop violation //BeginInit(); InitClass(); //EndInit(); } ////// Constructs a new instance RelationshipDetailDataTable with a given SerializationInfo and StreamingContext /// /// /// internal RelationshipDetailsCollection(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) : base(serializationInfo, streamingContext) { UpdateMemberFieldsAfterDeserialization(); } ////// Gets the PkCatalog column /// public System.Data.DataColumn PKCatalogColumn { get { return this._columnPKCatalog; } } ////// Gets the PkSchema column /// public System.Data.DataColumn PKSchemaColumn { get { return this._columnPKSchema; } } ////// Gets the PkTable column /// public System.Data.DataColumn PKTableColumn { get { return this._columnPKTable; } } ////// Gets the PkColumn column /// public System.Data.DataColumn PKColumnColumn { get { return this._columnPKColumn; } } ////// Gets the FkCatalog column /// public System.Data.DataColumn FKCatalogColumn { get { return this._columnFKCatalog; } } ////// Gets the FkSchema column /// public System.Data.DataColumn FKSchemaColumn { get { return this._columnFKSchema; } } ////// Gets the FkTable column /// public System.Data.DataColumn FKTableColumn { get { return this._columnFKTable; } } ////// Gets the FkColumn column /// public System.Data.DataColumn FKColumnColumn { get { return this._columnFKColumn; } } ////// Gets the Ordinal column /// public System.Data.DataColumn OrdinalColumn { get { return this._columnOrdinal; } } ////// Gets the RelationshipName column /// public System.Data.DataColumn RelationshipNameColumn { get { return this._columnRelationshipName; } } public System.Data.DataColumn RelationshipIdColumn { get { return this._columnRelationshipId; } } ////// Gets the IsCascadeDelete value /// public System.Data.DataColumn RelationshipIsCascadeDeleteColumn { get { return this._columnRelationshipIsCascadeDelete; } } ////// Gets an enumerator over the rows. /// ///The row enumerator public System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } ////// Creates an instance of this table /// ///The newly created instance. protected override System.Data.DataTable CreateInstance() { return new RelationshipDetailsCollection(); } private const string PK_CATALOG = "PkCatalog"; private const string PK_SCHEMA = "PkSchema"; private const string PK_TABLE = "PkTable"; private const string PK_COLUMN = "PkColumn"; private const string FK_CATALOG = "FkCatalog"; private const string FK_SCHEMA = "FkSchema"; private const string FK_TABLE = "FkTable"; private const string FK_COLUMN = "FkColumn"; private const string ORDINAL = "Ordinal"; private const string RELATIONSHIP_NAME = "RelationshipName"; private const string RELATIONSHIP_ID = "RelationshipId"; private const string RELATIONSHIP_IsCascadeDelete = "IsCascadeDelete"; private void InitClass() { this._columnPKCatalog = new System.Data.DataColumn(PK_CATALOG, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKCatalog); this._columnPKSchema = new System.Data.DataColumn(PK_SCHEMA, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKSchema); this._columnPKTable = new System.Data.DataColumn(PK_TABLE, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKTable); this._columnPKColumn = new System.Data.DataColumn(PK_COLUMN, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKColumn); this._columnFKCatalog = new System.Data.DataColumn(FK_CATALOG, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKCatalog); this._columnFKSchema = new System.Data.DataColumn(FK_SCHEMA, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKSchema); this._columnFKTable = new System.Data.DataColumn(FK_TABLE, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKTable); this._columnFKColumn = new System.Data.DataColumn(FK_COLUMN, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKColumn); this._columnOrdinal = new System.Data.DataColumn(ORDINAL, typeof(int), null, System.Data.MappingType.Element); base.Columns.Add(this._columnOrdinal); this._columnRelationshipName = new System.Data.DataColumn(RELATIONSHIP_NAME, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnRelationshipName); this._columnRelationshipId = new System.Data.DataColumn(RELATIONSHIP_ID, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnRelationshipId); this._columnRelationshipIsCascadeDelete = new System.Data.DataColumn(RELATIONSHIP_IsCascadeDelete, typeof(bool), null, System.Data.MappingType.Element); base.Columns.Add(this._columnRelationshipIsCascadeDelete); } private void UpdateMemberFieldsAfterDeserialization() { this._columnPKCatalog = base.Columns[PK_CATALOG]; this._columnPKSchema = base.Columns[PK_SCHEMA]; this._columnPKTable = base.Columns[PK_TABLE]; this._columnPKColumn = base.Columns[PK_COLUMN]; this._columnFKCatalog = base.Columns[FK_CATALOG]; this._columnFKSchema = base.Columns[FK_SCHEMA]; this._columnFKTable = base.Columns[FK_TABLE]; this._columnFKColumn = base.Columns[FK_COLUMN]; this._columnOrdinal = base.Columns[ORDINAL]; this._columnRelationshipName = base.Columns[RELATIONSHIP_NAME]; this._columnRelationshipId = base.Columns[RELATIONSHIP_ID]; this._columnRelationshipIsCascadeDelete = base.Columns[RELATIONSHIP_IsCascadeDelete]; } ////// Create a new row from a DataRowBuilder object. /// /// The builder to create the row from. ///The row that was created. protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { return new RelationshipDetailsRow(builder); } ////// Gets the Type that this row is. /// ///The type of this row. protected override System.Type GetRowType() { return typeof(RelationshipDetailsRow); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Xml; using System.Data.Common; using System.Globalization; using System.Data; namespace System.Data.Entity.Design.SsdlGenerator { ////// Strongly type data table for holding the RelationshipDetails /// [Serializable] internal sealed class RelationshipDetailsCollection : System.Data.DataTable, System.Collections.IEnumerable { [NonSerialized] private System.Data.DataColumn _columnPKCatalog; [NonSerialized] private System.Data.DataColumn _columnPKSchema; [NonSerialized] private System.Data.DataColumn _columnPKTable; [NonSerialized] private System.Data.DataColumn _columnPKColumn; [NonSerialized] private System.Data.DataColumn _columnFKCatalog; [NonSerialized] private System.Data.DataColumn _columnFKSchema; [NonSerialized] private System.Data.DataColumn _columnFKTable; [NonSerialized] private System.Data.DataColumn _columnFKColumn; [NonSerialized] private System.Data.DataColumn _columnOrdinal; [NonSerialized] private System.Data.DataColumn _columnRelationshipName; [NonSerialized] private System.Data.DataColumn _columnRelationshipId; [NonSerialized] private System.Data.DataColumn _columnRelationshipIsCascadeDelete; ////// Constructs a RelationsipDetailsDataTable /// public RelationshipDetailsCollection() { this.TableName = "RelationshipDetails"; // had to remove these because of an fxcop violation //BeginInit(); InitClass(); //EndInit(); } ////// Constructs a new instance RelationshipDetailDataTable with a given SerializationInfo and StreamingContext /// /// /// internal RelationshipDetailsCollection(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) : base(serializationInfo, streamingContext) { UpdateMemberFieldsAfterDeserialization(); } ////// Gets the PkCatalog column /// public System.Data.DataColumn PKCatalogColumn { get { return this._columnPKCatalog; } } ////// Gets the PkSchema column /// public System.Data.DataColumn PKSchemaColumn { get { return this._columnPKSchema; } } ////// Gets the PkTable column /// public System.Data.DataColumn PKTableColumn { get { return this._columnPKTable; } } ////// Gets the PkColumn column /// public System.Data.DataColumn PKColumnColumn { get { return this._columnPKColumn; } } ////// Gets the FkCatalog column /// public System.Data.DataColumn FKCatalogColumn { get { return this._columnFKCatalog; } } ////// Gets the FkSchema column /// public System.Data.DataColumn FKSchemaColumn { get { return this._columnFKSchema; } } ////// Gets the FkTable column /// public System.Data.DataColumn FKTableColumn { get { return this._columnFKTable; } } ////// Gets the FkColumn column /// public System.Data.DataColumn FKColumnColumn { get { return this._columnFKColumn; } } ////// Gets the Ordinal column /// public System.Data.DataColumn OrdinalColumn { get { return this._columnOrdinal; } } ////// Gets the RelationshipName column /// public System.Data.DataColumn RelationshipNameColumn { get { return this._columnRelationshipName; } } public System.Data.DataColumn RelationshipIdColumn { get { return this._columnRelationshipId; } } ////// Gets the IsCascadeDelete value /// public System.Data.DataColumn RelationshipIsCascadeDeleteColumn { get { return this._columnRelationshipIsCascadeDelete; } } ////// Gets an enumerator over the rows. /// ///The row enumerator public System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } ////// Creates an instance of this table /// ///The newly created instance. protected override System.Data.DataTable CreateInstance() { return new RelationshipDetailsCollection(); } private const string PK_CATALOG = "PkCatalog"; private const string PK_SCHEMA = "PkSchema"; private const string PK_TABLE = "PkTable"; private const string PK_COLUMN = "PkColumn"; private const string FK_CATALOG = "FkCatalog"; private const string FK_SCHEMA = "FkSchema"; private const string FK_TABLE = "FkTable"; private const string FK_COLUMN = "FkColumn"; private const string ORDINAL = "Ordinal"; private const string RELATIONSHIP_NAME = "RelationshipName"; private const string RELATIONSHIP_ID = "RelationshipId"; private const string RELATIONSHIP_IsCascadeDelete = "IsCascadeDelete"; private void InitClass() { this._columnPKCatalog = new System.Data.DataColumn(PK_CATALOG, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKCatalog); this._columnPKSchema = new System.Data.DataColumn(PK_SCHEMA, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKSchema); this._columnPKTable = new System.Data.DataColumn(PK_TABLE, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKTable); this._columnPKColumn = new System.Data.DataColumn(PK_COLUMN, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnPKColumn); this._columnFKCatalog = new System.Data.DataColumn(FK_CATALOG, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKCatalog); this._columnFKSchema = new System.Data.DataColumn(FK_SCHEMA, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKSchema); this._columnFKTable = new System.Data.DataColumn(FK_TABLE, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKTable); this._columnFKColumn = new System.Data.DataColumn(FK_COLUMN, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnFKColumn); this._columnOrdinal = new System.Data.DataColumn(ORDINAL, typeof(int), null, System.Data.MappingType.Element); base.Columns.Add(this._columnOrdinal); this._columnRelationshipName = new System.Data.DataColumn(RELATIONSHIP_NAME, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnRelationshipName); this._columnRelationshipId = new System.Data.DataColumn(RELATIONSHIP_ID, typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this._columnRelationshipId); this._columnRelationshipIsCascadeDelete = new System.Data.DataColumn(RELATIONSHIP_IsCascadeDelete, typeof(bool), null, System.Data.MappingType.Element); base.Columns.Add(this._columnRelationshipIsCascadeDelete); } private void UpdateMemberFieldsAfterDeserialization() { this._columnPKCatalog = base.Columns[PK_CATALOG]; this._columnPKSchema = base.Columns[PK_SCHEMA]; this._columnPKTable = base.Columns[PK_TABLE]; this._columnPKColumn = base.Columns[PK_COLUMN]; this._columnFKCatalog = base.Columns[FK_CATALOG]; this._columnFKSchema = base.Columns[FK_SCHEMA]; this._columnFKTable = base.Columns[FK_TABLE]; this._columnFKColumn = base.Columns[FK_COLUMN]; this._columnOrdinal = base.Columns[ORDINAL]; this._columnRelationshipName = base.Columns[RELATIONSHIP_NAME]; this._columnRelationshipId = base.Columns[RELATIONSHIP_ID]; this._columnRelationshipIsCascadeDelete = base.Columns[RELATIONSHIP_IsCascadeDelete]; } ////// Create a new row from a DataRowBuilder object. /// /// The builder to create the row from. ///The row that was created. protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { return new RelationshipDetailsRow(builder); } ////// Gets the Type that this row is. /// ///The type of this row. protected override System.Type GetRowType() { return typeof(RelationshipDetailsRow); } } } // 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
- ReferencedCollectionType.cs
- RangeValidator.cs
- LookupNode.cs
- PersistenceException.cs
- HttpCachePolicy.cs
- RowUpdatingEventArgs.cs
- DynamicUpdateCommand.cs
- Predicate.cs
- CreateRefExpr.cs
- LinearGradientBrush.cs
- _RequestCacheProtocol.cs
- UnsafeMethods.cs
- IOThreadTimer.cs
- HtmlUtf8RawTextWriter.cs
- ZeroOpNode.cs
- FileLoadException.cs
- ControlIdConverter.cs
- MembershipValidatePasswordEventArgs.cs
- CalendarDay.cs
- SubpageParaClient.cs
- SignatureHelper.cs
- BuildResultCache.cs
- DiagnosticsConfigurationHandler.cs
- PixelFormat.cs
- TextEditorCharacters.cs
- String.cs
- JapaneseLunisolarCalendar.cs
- MachineKeySection.cs
- BindingExpressionUncommonField.cs
- Converter.cs
- MetabaseServerConfig.cs
- TypedTableGenerator.cs
- ActivityCodeDomReferenceService.cs
- FixedDSBuilder.cs
- PartitionerQueryOperator.cs
- EditCommandColumn.cs
- TextRenderer.cs
- InvalidFilterCriteriaException.cs
- WindowsTooltip.cs
- IdentifierService.cs
- FontConverter.cs
- CaretElement.cs
- DependencyObjectType.cs
- FileEnumerator.cs
- UntypedNullExpression.cs
- LabelLiteral.cs
- ScriptManager.cs
- CapabilitiesPattern.cs
- ConfigUtil.cs
- CaseInsensitiveComparer.cs
- ComponentDispatcherThread.cs
- QilPatternFactory.cs
- Suspend.cs
- OracleNumber.cs
- GeometryCombineModeValidation.cs
- ViewStateException.cs
- XmlQueryType.cs
- GlyphsSerializer.cs
- XPathSingletonIterator.cs
- StackOverflowException.cs
- InputProviderSite.cs
- StorageRoot.cs
- TryCatchDesigner.xaml.cs
- FileDialogCustomPlace.cs
- DrawingServices.cs
- MaterialCollection.cs
- PointAnimationClockResource.cs
- AssemblySettingAttributes.cs
- PixelShader.cs
- GridViewUpdateEventArgs.cs
- AxWrapperGen.cs
- UnsafeNativeMethods.cs
- SelectionProcessor.cs
- DataGridViewCellStyle.cs
- EventData.cs
- unitconverter.cs
- ImageProxy.cs
- DecodeHelper.cs
- ReflectionUtil.cs
- Brush.cs
- ToolStripProgressBar.cs
- SequentialUshortCollection.cs
- ControlValuePropertyAttribute.cs
- FormClosedEvent.cs
- XslTransform.cs
- MaskInputRejectedEventArgs.cs
- DocumentSequence.cs
- LinqDataSourceUpdateEventArgs.cs
- BinaryMethodMessage.cs
- DetailsViewUpdateEventArgs.cs
- DockEditor.cs
- WebConfigurationHost.cs
- NativeMethodsOther.cs
- TrustSection.cs
- Deserializer.cs
- XmlDocument.cs
- BoolExpressionVisitors.cs
- UidPropertyAttribute.cs
- Missing.cs
- StructuredProperty.cs