' <fileinfo name="CategoriesRow_Base.vb">
'       <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>

Option Strict Off
Option Explicit On

Imports System

''' <summary>
''' The base class for <see cref="CategoriesRow"/> that 
''' represents a record in the <c>Categories</c> table.
''' </summary>
''' <remarks>
''' Do not change this source code manually. Update the <see cref="CategoriesRow"/>
''' class if you need to add or change some functionality.
''' </remarks>
Public MustInherit Class CategoriesRow_Base
    Private _categoryID As Integer
    Private _categoryName As String
    Private _description As String
    Private _picture As Byte()

    ''' <summary>
    ''' Initializes a new instance of the <see cref="CategoriesRow_Base"/> class.
    ''' </summary>
    Public Sub New()
        MyBase.New()
        ' EMPTY
    End Sub

        ''' <summary>
        ''' Gets or sets the <c>CategoryID</c> column value.
        ''' </summary>
        ''' <value>The <c>CategoryID</c> column value.</value>
    Public Property CategoryID As Integer
        Get
            Return _categoryID
        End Get
        Set
            _categoryID = value
        End Set
    End Property

        ''' <summary>
        ''' Gets or sets the <c>CategoryName</c> column value.
        ''' </summary>
        ''' <value>The <c>CategoryName</c> column value.</value>
    Public Property CategoryName As String
        Get
            Return _categoryName
        End Get
        Set
            _categoryName = value
        End Set
    End Property

        ''' <summary>
        ''' Gets or sets the <c>Description</c> column value.
        ''' This column is nullable.
        ''' </summary>
        ''' <value>The <c>Description</c> column value.</value>
    Public Property Description As String
        Get
            Return _description
        End Get
        Set
            _description = value
        End Set
    End Property

        ''' <summary>
        ''' Gets or sets the <c>Picture</c> column value.
        ''' This column is nullable.
        ''' </summary>
        ''' <value>The <c>Picture</c> column value.</value>
    Public Property Picture As Byte()
        Get
            Return _picture
        End Get
        Set
            _picture = value
        End Set
    End Property

    ''' <summary>
    ''' Returns the string representation of this instance.
    ''' </summary>
    ''' <returns>The string representation of this instance.</returns>
    Public Overrides Function ToString() As String
        Dim dynStr As System.Text.StringBuilder = New System.Text.StringBuilder(Me.GetType().Name)
        dynStr.Append(":")
        dynStr.Append("  CategoryID=")
        dynStr.Append(Me.CategoryID)
        dynStr.Append("  CategoryName=")
        dynStr.Append(Me.CategoryName)
        dynStr.Append("  Description=")
        dynStr.Append(Me.Description)
        Return dynStr.ToString()
    End Function
End Class