Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / SSDLGenerator / RelationshipDetailsCollection.cs / 1305376 / 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
- Console.cs
- AdapterDictionary.cs
- GridItemPattern.cs
- DataObjectSettingDataEventArgs.cs
- SamlAction.cs
- Nullable.cs
- DesignerDataParameter.cs
- ThrowHelper.cs
- safex509handles.cs
- TimelineCollection.cs
- TextDecoration.cs
- BrowserTree.cs
- TypeHelper.cs
- TypeResolvingOptionsAttribute.cs
- InkCanvas.cs
- IisTraceWebEventProvider.cs
- Rectangle.cs
- WizardStepBase.cs
- XsltConvert.cs
- XamlWrapperReaders.cs
- InertiaExpansionBehavior.cs
- SweepDirectionValidation.cs
- ExpandCollapseProviderWrapper.cs
- AtomServiceDocumentSerializer.cs
- PathFigure.cs
- ShapingWorkspace.cs
- OutputCacheSection.cs
- StylusOverProperty.cs
- glyphs.cs
- ArrayConverter.cs
- XmlSchemaAttribute.cs
- HorizontalAlignConverter.cs
- DisplayInformation.cs
- securestring.cs
- CatalogZoneBase.cs
- RenderDataDrawingContext.cs
- RuleInfoComparer.cs
- TreeNodeClickEventArgs.cs
- CollectionBase.cs
- ParameterToken.cs
- ApplicationServiceManager.cs
- DataGridCell.cs
- StringArrayConverter.cs
- HttpCacheVaryByContentEncodings.cs
- CodeGeneratorOptions.cs
- _FixedSizeReader.cs
- ServiceDescription.cs
- DependencyObjectType.cs
- ConnectionPoint.cs
- FunctionQuery.cs
- Point3D.cs
- UnsafeNativeMethodsPenimc.cs
- WorkflowElementDialog.cs
- SizeConverter.cs
- DragDeltaEventArgs.cs
- UnsignedPublishLicense.cs
- httpapplicationstate.cs
- TemplatedWizardStep.cs
- IPipelineRuntime.cs
- StylusDevice.cs
- ConsoleTraceListener.cs
- ValidationPropertyAttribute.cs
- DependencyObjectType.cs
- SimpleHandlerFactory.cs
- figurelength.cs
- HostedTransportConfigurationManager.cs
- SecuritySessionClientSettings.cs
- TreeNodeConverter.cs
- ParserExtension.cs
- XmlC14NWriter.cs
- ConfigurationSection.cs
- KeyInterop.cs
- CancelEventArgs.cs
- HashSetEqualityComparer.cs
- Int32.cs
- CalendarDayButton.cs
- ReaderContextStackData.cs
- CryptoApi.cs
- DropDownList.cs
- WebEventTraceProvider.cs
- VideoDrawing.cs
- DynamicEndpoint.cs
- CellParagraph.cs
- SafeFileMappingHandle.cs
- DiscoveryMessageSequence11.cs
- BoundColumn.cs
- OleDbDataAdapter.cs
- OperatorExpressions.cs
- cache.cs
- DbParameterHelper.cs
- User.cs
- UIHelper.cs
- NoResizeSelectionBorderGlyph.cs
- NamespaceListProperty.cs
- XsltQilFactory.cs
- Trace.cs
- MatrixIndependentAnimationStorage.cs
- PriorityChain.cs
- CodeExpressionStatement.cs
- Int32Animation.cs