// <fileinfo name="CustomerandSuppliersbyCityRow_Base.cs">
//      <copyright>
//          All rights reserved.
//      </copyright>
//      <remarks>
//          Do not change this source code manually. Changes to this file may 
//          cause incorrect behavior and will be lost if the code is regenerated.
//      </remarks>
//      <generator rewritefile="True" infourl="http://www.SharpPower.com">RapTier</generator>
// </fileinfo>

using System;

namespace MyCompany.MyProject.Db
{
    /// <summary>
    /// The base class for <see cref="CustomerandSuppliersbyCityRow"/> that 
    /// represents a record in the <c>Customer and Suppliers by City</c> view.
    /// </summary>
    /// <remarks>
    /// Do not change this source code manually. Update the <see cref="CustomerandSuppliersbyCityRow"/>
    /// class if you need to add or change some functionality.
    /// </remarks>
    public abstract class CustomerandSuppliersbyCityRow_Base
    {
        private string _city;
        private string _companyName;
        private string _contactName;
        private string _relationship;

        /// <summary>
        /// Initializes a new instance of the <see cref="CustomerandSuppliersbyCityRow_Base"/> class.
        /// </summary>
        public CustomerandSuppliersbyCityRow_Base()
        {
            // EMPTY
        }

        /// <summary>
        /// Gets or sets the <c>City</c> column value.
        /// This column is nullable.
        /// </summary>
        /// <value>The <c>City</c> column value.</value>
        public string City
        {
            get { return _city; }
            set { _city = value; }
        }

        /// <summary>
        /// Gets or sets the <c>CompanyName</c> column value.
        /// </summary>
        /// <value>The <c>CompanyName</c> column value.</value>
        public string CompanyName
        {
            get { return _companyName; }
            set { _companyName = value; }
        }

        /// <summary>
        /// Gets or sets the <c>ContactName</c> column value.
        /// This column is nullable.
        /// </summary>
        /// <value>The <c>ContactName</c> column value.</value>
        public string ContactName
        {
            get { return _contactName; }
            set { _contactName = value; }
        }

        /// <summary>
        /// Gets or sets the <c>Relationship</c> column value.
        /// </summary>
        /// <value>The <c>Relationship</c> column value.</value>
        public string Relationship
        {
            get { return _relationship; }
            set { _relationship = value; }
        }

        /// <summary>
        /// Returns the string representation of this instance.
        /// </summary>
        /// <returns>The string representation of this instance.</returns>
        public override string ToString()
        {
            System.Text.StringBuilder dynStr = new System.Text.StringBuilder(GetType().Name);
            dynStr.Append(':');
            dynStr.Append("  City=");
            dynStr.Append(City);
            dynStr.Append("  CompanyName=");
            dynStr.Append(CompanyName);
            dynStr.Append("  ContactName=");
            dynStr.Append(ContactName);
            dynStr.Append("  Relationship=");
            dynStr.Append(Relationship);
            return dynStr.ToString();
        }
    } // End of CustomerandSuppliersbyCityRow_Base class
} // End of namespace