RelationshipDetailsRow.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / SSDLGenerator / RelationshipDetailsRow.cs / 1 / RelationshipDetailsRow.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;
using System.Data.Entity.Design.Common; 

namespace System.Data.Entity.Design.SsdlGenerator 
{ 
    /// 
    /// Strongly typed RelationshipDetail row 
    /// 
    internal sealed class RelationshipDetailsRow : System.Data.DataRow
    {
 
        private RelationshipDetailsCollection _tableRelationshipDetails;
 
        [System.Diagnostics.DebuggerNonUserCodeAttribute()] 
        internal RelationshipDetailsRow(System.Data.DataRowBuilder rb)
            : base(rb) 
        {
            this._tableRelationshipDetails = ((RelationshipDetailsCollection)(base.Table));
        }
 
        /// 
        /// Gets a strongly typed table 
        ///  
        public new RelationshipDetailsCollection Table
        { 
            get
            {
                return _tableRelationshipDetails;
            } 
        }
 
        ///  
        /// Gets the PkCatalog column value
        ///  
        public string PKCatalog
        {
            get
            { 
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.PKCatalogColumn])); 
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKCatalogColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                }
            } 
            set
            { 
                this[this._tableRelationshipDetails.PKCatalogColumn] = value; 
            }
        } 

        /// 
        /// Gets the PkSchema column value
        ///  
        public string PKSchema
        { 
            get 
            {
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.PKSchemaColumn]));
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKSchemaColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                } 
            }
            set 
            {
                this[this._tableRelationshipDetails.PKSchemaColumn] = value;
            }
        } 

        ///  
        /// Gets the PkTable column value 
        /// 
        public string PKTable 
        {
            get
            {
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.PKTableColumn])); 
                } 
                catch (System.InvalidCastException e)
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKTableColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                }
            }
            set 
            {
                this[this._tableRelationshipDetails.PKTableColumn] = value; 
            } 
        }
 
        /// 
        /// Gets the PkColumn column value
        /// 
        public string PKColumn 
        {
            get 
            { 
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.PKColumnColumn]));
                }
                catch (System.InvalidCastException e)
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKColumnColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                } 
            } 
            set
            { 
                this[this._tableRelationshipDetails.PKColumnColumn] = value;
            }
        }
 
        /// 
        /// Gets the FkCatalog column value 
        ///  
        public string FKCatalog
        { 
            get
            {
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.FKCatalogColumn]));
                } 
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKCatalogColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            }
            set
            { 
                this[this._tableRelationshipDetails.FKCatalogColumn] = value;
            } 
        } 

        ///  
        /// Gets the FkSchema column value
        /// 
        public string FKSchema
        { 
            get
            { 
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.FKSchemaColumn])); 
                }
                catch (System.InvalidCastException e)
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKSchemaColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            } 
            set 
            {
                this[this._tableRelationshipDetails.FKSchemaColumn] = value; 
            }
        }

        ///  
        /// Gets the FkTable column value
        ///  
        public string FKTable 
        {
            get 
            {
                try
                {
                    return ((string)(this[this._tableRelationshipDetails.FKTableColumn])); 
                }
                catch (System.InvalidCastException e) 
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKTableColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                } 
            }
            set
            {
                this[this._tableRelationshipDetails.FKTableColumn] = value; 
            }
        } 
 
        /// 
        /// Gets the FkColumn column value 
        /// 
        public string FKColumn
        {
            get 
            {
                try 
                { 
                    return ((string)(this[this._tableRelationshipDetails.FKColumnColumn]));
                } 
                catch (System.InvalidCastException e)
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKColumnColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                } 
            }
            set 
            { 
                this[this._tableRelationshipDetails.FKColumnColumn] = value;
            } 
        }

        /// 
        /// Gets the Ordinal column value 
        /// 
        public int Ordinal 
        { 
            get
            { 
                try
                {
                    return ((int)(this[this._tableRelationshipDetails.OrdinalColumn]));
                } 
                catch (System.InvalidCastException e)
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.OrdinalColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            } 
            set
            {
                this[this._tableRelationshipDetails.OrdinalColumn] = value;
            } 
        }
 
        ///  
        /// Gets the RelationshipName column value
        ///  
        public string RelationshipName
        {
            get
            { 
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.RelationshipNameColumn])); 
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipNameColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                }
            } 
            set
            { 
                this[this._tableRelationshipDetails.RelationshipNameColumn] = value; 
            }
        } 

        /// 
        /// Gets the RelationshipName column value
        ///  
        public string RelationshipId
        { 
            get 
            {
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.RelationshipIdColumn]));
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipIdColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                } 
            }
            set 
            {
                this[this._tableRelationshipDetails.RelationshipIdColumn] = value;
            }
        } 
        /// 
        /// Gets the IsCascadeDelete column value 
        ///  
        public bool RelationshipIsCascadeDelete
        { 
            get
            {
                try
                { 
                    return ((bool)(this[this._tableRelationshipDetails.RelationshipIsCascadeDeleteColumn]));
                } 
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipIsCascadeDeleteColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            }
            set
            { 
                this[this._tableRelationshipDetails.RelationshipIsCascadeDeleteColumn] = value;
            } 
        } 

 
        /// 
        /// Determines if the PkCatalog column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKCatalogNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKCatalogColumn); 
        }
 
        /// 
        /// Determines if the PkSchema column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKSchemaNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKSchemaColumn); 
        }
 
        /// 
        /// Determines if the PkTable column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKTableNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKTableColumn); 
        }
 
        /// 
        /// Determines if the PkColumn column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKColumnNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKColumnColumn); 
        }
 
        /// 
        /// Determines if the FkCatalog column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKCatalogNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKCatalogColumn); 
        }
 
        /// 
        /// Determines if the FkSchema column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKSchemaNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKSchemaColumn); 
        }
 
        /// 
        /// Determines if the FkTable column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKTableNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKTableColumn); 
        }
 
        /// 
        /// Determines if the FkColumn column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKColumnNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKColumnColumn); 
        }
 
        /// 
        /// Determines if the Ordinal column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsOrdinalNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.OrdinalColumn); 
        }
 
        /// 
        /// Determines if the RelationshipName column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsRelationshipNameNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.RelationshipNameColumn); 
        }
    } 
}

// 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;
using System.Data.Entity.Design.Common; 

namespace System.Data.Entity.Design.SsdlGenerator 
{ 
    /// 
    /// Strongly typed RelationshipDetail row 
    /// 
    internal sealed class RelationshipDetailsRow : System.Data.DataRow
    {
 
        private RelationshipDetailsCollection _tableRelationshipDetails;
 
        [System.Diagnostics.DebuggerNonUserCodeAttribute()] 
        internal RelationshipDetailsRow(System.Data.DataRowBuilder rb)
            : base(rb) 
        {
            this._tableRelationshipDetails = ((RelationshipDetailsCollection)(base.Table));
        }
 
        /// 
        /// Gets a strongly typed table 
        ///  
        public new RelationshipDetailsCollection Table
        { 
            get
            {
                return _tableRelationshipDetails;
            } 
        }
 
        ///  
        /// Gets the PkCatalog column value
        ///  
        public string PKCatalog
        {
            get
            { 
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.PKCatalogColumn])); 
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKCatalogColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                }
            } 
            set
            { 
                this[this._tableRelationshipDetails.PKCatalogColumn] = value; 
            }
        } 

        /// 
        /// Gets the PkSchema column value
        ///  
        public string PKSchema
        { 
            get 
            {
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.PKSchemaColumn]));
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKSchemaColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                } 
            }
            set 
            {
                this[this._tableRelationshipDetails.PKSchemaColumn] = value;
            }
        } 

        ///  
        /// Gets the PkTable column value 
        /// 
        public string PKTable 
        {
            get
            {
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.PKTableColumn])); 
                } 
                catch (System.InvalidCastException e)
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKTableColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                }
            }
            set 
            {
                this[this._tableRelationshipDetails.PKTableColumn] = value; 
            } 
        }
 
        /// 
        /// Gets the PkColumn column value
        /// 
        public string PKColumn 
        {
            get 
            { 
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.PKColumnColumn]));
                }
                catch (System.InvalidCastException e)
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.PKColumnColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                } 
            } 
            set
            { 
                this[this._tableRelationshipDetails.PKColumnColumn] = value;
            }
        }
 
        /// 
        /// Gets the FkCatalog column value 
        ///  
        public string FKCatalog
        { 
            get
            {
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.FKCatalogColumn]));
                } 
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKCatalogColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            }
            set
            { 
                this[this._tableRelationshipDetails.FKCatalogColumn] = value;
            } 
        } 

        ///  
        /// Gets the FkSchema column value
        /// 
        public string FKSchema
        { 
            get
            { 
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.FKSchemaColumn])); 
                }
                catch (System.InvalidCastException e)
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKSchemaColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            } 
            set 
            {
                this[this._tableRelationshipDetails.FKSchemaColumn] = value; 
            }
        }

        ///  
        /// Gets the FkTable column value
        ///  
        public string FKTable 
        {
            get 
            {
                try
                {
                    return ((string)(this[this._tableRelationshipDetails.FKTableColumn])); 
                }
                catch (System.InvalidCastException e) 
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKTableColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                } 
            }
            set
            {
                this[this._tableRelationshipDetails.FKTableColumn] = value; 
            }
        } 
 
        /// 
        /// Gets the FkColumn column value 
        /// 
        public string FKColumn
        {
            get 
            {
                try 
                { 
                    return ((string)(this[this._tableRelationshipDetails.FKColumnColumn]));
                } 
                catch (System.InvalidCastException e)
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.FKColumnColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                } 
            }
            set 
            { 
                this[this._tableRelationshipDetails.FKColumnColumn] = value;
            } 
        }

        /// 
        /// Gets the Ordinal column value 
        /// 
        public int Ordinal 
        { 
            get
            { 
                try
                {
                    return ((int)(this[this._tableRelationshipDetails.OrdinalColumn]));
                } 
                catch (System.InvalidCastException e)
                { 
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.OrdinalColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            } 
            set
            {
                this[this._tableRelationshipDetails.OrdinalColumn] = value;
            } 
        }
 
        ///  
        /// Gets the RelationshipName column value
        ///  
        public string RelationshipName
        {
            get
            { 
                try
                { 
                    return ((string)(this[this._tableRelationshipDetails.RelationshipNameColumn])); 
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipNameColumn.ColumnName, _tableRelationshipDetails.TableName, e);
                }
            } 
            set
            { 
                this[this._tableRelationshipDetails.RelationshipNameColumn] = value; 
            }
        } 

        /// 
        /// Gets the RelationshipName column value
        ///  
        public string RelationshipId
        { 
            get 
            {
                try 
                {
                    return ((string)(this[this._tableRelationshipDetails.RelationshipIdColumn]));
                }
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipIdColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                } 
            }
            set 
            {
                this[this._tableRelationshipDetails.RelationshipIdColumn] = value;
            }
        } 
        /// 
        /// Gets the IsCascadeDelete column value 
        ///  
        public bool RelationshipIsCascadeDelete
        { 
            get
            {
                try
                { 
                    return ((bool)(this[this._tableRelationshipDetails.RelationshipIsCascadeDeleteColumn]));
                } 
                catch (System.InvalidCastException e) 
                {
                    throw EDesignUtil.StonglyTypedAccessToNullValue(_tableRelationshipDetails.RelationshipIsCascadeDeleteColumn.ColumnName, _tableRelationshipDetails.TableName, e); 
                }
            }
            set
            { 
                this[this._tableRelationshipDetails.RelationshipIsCascadeDeleteColumn] = value;
            } 
        } 

 
        /// 
        /// Determines if the PkCatalog column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKCatalogNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKCatalogColumn); 
        }
 
        /// 
        /// Determines if the PkSchema column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKSchemaNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKSchemaColumn); 
        }
 
        /// 
        /// Determines if the PkTable column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKTableNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKTableColumn); 
        }
 
        /// 
        /// Determines if the PkColumn column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsPKColumnNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.PKColumnColumn); 
        }
 
        /// 
        /// Determines if the FkCatalog column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKCatalogNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKCatalogColumn); 
        }
 
        /// 
        /// Determines if the FkSchema column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKSchemaNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKSchemaColumn); 
        }
 
        /// 
        /// Determines if the FkTable column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKTableNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKTableColumn); 
        }
 
        /// 
        /// Determines if the FkColumn column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsFKColumnNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.FKColumnColumn); 
        }
 
        /// 
        /// Determines if the Ordinal column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsOrdinalNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.OrdinalColumn); 
        }
 
        /// 
        /// Determines if the RelationshipName column value is null
        /// 
        /// true if the value is null, otherwise false. 
        public bool IsRelationshipNameNull()
        { 
            return this.IsNull(this._tableRelationshipDetails.RelationshipNameColumn); 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK