Click here to Skip to main content
15,895,462 members
Articles / Programming Languages / Visual Basic

TeamVision

Rate me:
Please Sign up or sign in to vote.
3.08/5 (11 votes)
16 Nov 2009CPL3 min read 84.5K   5.4K   69  
A simple project task management application. A managed approach to help keep on top of your projects.
'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:2.0.50727.3082
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Text

'*************************************************************
' Class Name:  Person
' Purpose:  Plain vanilla class that Models the underlying datatable structure
' Description: 
'***************************************************************
Namespace Models
    
    <DataObjectAttribute(),  _
     Serializable()>  _
    Public Class Person
        Inherits Common.Model
        
        Private m_PersonID As Integer = -1
        
        Private m_Name As String = "--"
        
        Public Sub New()
            MyBase.New
        End Sub
        
        Public Sub New(ByVal PersonID As Integer, ByVal Name As String)
            MyBase.New
            Me.m_PersonID = PersonID
            Me.m_Name = Name
        End Sub
        
        <DataObjectField(true, true, false)>  _
        Public Property PersonID() As Integer
            Get
                Return m_PersonID
            End Get
            Set
                m_PersonID = value
            End Set
        End Property
        
        Public Overrides Property Name() As String
            Get
                Return m_Name
            End Get
            Set
                m_Name = value
            End Set
        End Property
        
        Public Overrides ReadOnly Property PrimaryID() As Integer
            Get
                Return m_PersonID
            End Get
        End Property
    End Class
End Namespace

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Public License Version 1.0 (CPL)


Written By
Founder Arkitech EBC Corporation
United States United States
MS, BBA, software developer, consultant, and trainer. Specializing in building data-centric applications designed for business, university, community & faith based organizations. Started developing Excel VBA macros and never looked back. Freelance developer utilizing VB.Net, SQL Server, Microsoft Access, and ASP.Net.

Comments and Discussions