MVC pattern with SimpleData ( mapping class )
<p>I writing application based on database and framework SimpleData. This is my classes:</p>

<pre><code>public class Clients
{
    public int ID_C { get; set; }
    public string Corporation { get; set; }
    public string Name { get; set; }
    public string Surname { get; set; }
    public string Note { get; set; }
    public DateTime Date { get; set; }
}

class E_mail
{
    public int ID_E { get; set; }
    public int ID_C { get; set; }
    public string E__mail { get; set; }
    public string Note { get; set; }
}
</code></pre>

<p>When I want add recrod to database ( Client or E_mail ) - it is ok because this classes represent two table in database. Class Clients is ok because my viewClients needs all atributes from Clients but viewEmail needs only Name ( from Clients ) and E__mail ( from E_mail Class ). How I can present model for viewEmail?? Create new class(this is bad).</p>

<p>Example:</p>

<pre><code>    Controller:
    List&lt;Clients&gt; ListClients = new List&lt;Clients&gt;();
    public void LoadView()
    {
        var con = Database.Open();
        ListClients = con.ShowAllClients(); //This is stored procedure in database.
        _clientsView.AddClientsToGrid(ListClients);
    }


    View:
    public void AddClientsToGrid(List&lt;Clients&gt; listClients)
    {
        listView1.BeginUpdate();
        for (int i = 0; i &lt; listClients.Count; i++)
        {
            ListViewItem item = new ListViewItem(new string[] { listClients[i].ID_C.ToString(), listClients[i].Corporation, listClients[i].Name, listClients[i].Surname, listClients[i].Date.ToShortDateString() });
            listView1.Items.Add(item);
        }
        listView1.EndUpdate();
    }
</code></pre>

<p>Thanks for advanced.</p>
