I am attempting to add a new EF4 POCO to an existing solution. I am getting following error, and when I look at existing POCO already created in the solution I cannot work out how the link is made between the POCO and the table.
Mapping and metadata information could not be found for EntityType 'XXX.Run'.
Here is an example of one that works in the solution and I cant figure out why:
namespace XXX.AnotherPlace.Products
{
public partial class Product : BaseEntity
{
When I look at the edmx file there is no mension of this class, just other classes in namespace that don't seem to exist:
<EntitySet Name="Product" EntityType="XXX.Store.tbl_Product" store:Type="Tables" Schema="dbo" />
<End Type="XXXX.Data.Product" Role="Product" Multiplicity="1" />
What am I missing, there there some convenstion that need to be followed? How do I link a table with my own POCO