title: Auto-generate Unique ID within the constructor
body: <p>Using VB.net, create a new class called staff, with three properties:
      Name ,  LastName, ID - should be suitable for use as a primary key in a database.</p>
  
  <p>Provide a class constructor to populate Name and LastName.  ID should be auto-generated within the constructor and should not be passed in.</p>
  
  <p>I know how to create a class, properties and constructor, I just need to know how to auto-generate ID field within the constructor. Is it possible to do this? </p>
  
  <p>what I usually do is either make the id field in database as identity field and primary key so it automatically inserts the next available id or In my application I read the last ID from database and add one to it. But I need to know how to auto-generate ID field within the constructor.</p>