How to get list object by using only List<T> for 2 Entity?
<p>In my project, I have 2 Entity objects (delegate for 2 tables in db) as below:</p>

<blockquote>
  <ul>
  <li>Tbl_Person {ID, Name}</li>
  <li>Tbl_Class {ID, Name, PersonID}</li>
  </ul>
</blockquote>

<p>In DAL, I create 2 classes for these Entities, and <strong>write function GetList()</strong>:
- Class Person: </p>

<pre><code>public List&lt;Tbl_Person&gt; GetList()
{
    using (var db = DatabaseHelper.DataContext())
    {
        try
        {
            var _t = (from info in db.**tbPerson** 
                      select info).ToList();
            return _t.ToList&lt;**Tbl_Person**&gt;();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}
</code></pre>

<p>Class MyClass: </p>

<pre><code>public List&lt;Tbl_Class&gt; GetList()
{
    using (var db = DatabaseHelper.DataContext())
    {
        try
        {
            var _t = (from info in db.**tbClass** 
                      select info).ToList();
            return _t.ToList&lt;**Tbl_Class**&gt;();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}
</code></pre>

<p>If I use 2 classes, I can use GetList() to get list object correctly.
But it seems we have duplicate function GetList() here. What I want just is <strong>only 1 function  GetList() like this</strong>:</p>

<pre><code>public List&lt;T&gt; GetList()
{
    using (var db = DatabaseHelper.DataContext())
    {
        try
        {
            var _t = (from info in db.**????????** 
                      select info).ToList();
            return _t.ToList&lt;**T**&gt;();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}
</code></pre>
