So I'm building a base library, let's call it A, which has a number of simple classes. That library should not use the Entity Framework reference because you can work with these objects without using a database at all.
Then I have another library called A.EntityFramework which should add the ability to use Entity Framework to put those objects into a database.
My problem is that to be able to use them with Entity Framework I need the attributes [Key], [Index] etc on the class definitions in the base library. But those attributes are defined in Entity Framework which that library doesn't reference...
What is the proper way to solve this situation?