work with Entity and Three layer Architecture
<p>i m writing a phone book with asp.net.In this program i use EF and three layer architecture.</p>

<p>for adding a person first i get information from UI and save it in a class that i identified before then i pass it to second layer for more validation after that i pass it to third layer in third later i convert this class to suitable entity for saving in database.my question is this:</p>

<p>has my program good architecture?</p>

<p>beacuse i could directly save person information from UI to a entity and then validate it and save it to database. but i think in this way program is not flexible.</p>

<p>and another question:
in my architecture i just work with objects and in fact i bind an array of object to a data viwer but when i directly use enities i can bind entity to a data viwer.</p>

<p>whitch one do you prefer?    </p>
