When I use this framework with the Adventure Works 2014 database, it gives me this error "The entity type Person is not part of the model for the current context."
Here is a copy of my entity
[Table("Person", Schema = "Person")]
public partial class Person : Entity
and here is the copy of my service
public interface IPersonService : IService<Person>
public class PersonService : Service<Person>, IPersonService
private readonly IRepositoryAsync<Person> _repository;
public PersonService(IRepositoryAsync<Person> repository)
_repository = repository;
when I instantiate the service and call this method
I get the error "The entity type Person is not part of the model for the current context."
Any idea how I can resolve this issue?
I followed the northwind tutorial and it works fine, this is happening when I am creating the same for Adventure works 2014
Your help is greatly appreciated!