I am doing a home project in C#. My project includes EF. It has a database, an EF auto-generated entity class library with all the model classes in it, a repository tier and a presentation tier. I want the presentation tier to be independent from the data tier. I thought I made another one tier that contains the Entity interfaces so in the upper layers I could reference only the interface tier and still be able to pass data, without accidentaly modify the data or to be dependent from the data. However this doesnt work because the model generator class throws an exception that the properties are not mapped. Im confused right now. How could I achieve this? Is there any design pattern I should consider?
Thanks.