how does your custom class relate to the database
<p>Okay, so i've studied c# and asp.net long enough and would like to know how all these custom classes i created relate to the database. for example. </p>

<p>i have a class call Employee</p>

<pre><code>public class Employee
{
    public int ID { get; set; }
    public string Name { get; set; }
    public string EmailAddress { get; set; }
}
</code></pre>

<p>and i have a database with the following 4 fields:</p>

<pre><code>ID
Name
EmailAddress
PhoneNumber
</code></pre>

<p>it seems like the custom class is my database. and in asp.net i can simple run the LINQ to SQL command on my database and get the whole schema of my class without typing out a custom class with getter and setter.</p>

<p>so let's just say that now i am running a query to retrieve a list of employees. I would like to know how does my application map to my Employee class to my database?</p>
