views:

22

answers:

0

I Have Single Table Inheritance in EF4.

when i use POCOs as it , it works will.

but if i want to put pocos code in base class then inherit from it i get this Error :

Blockquote Mapping and metadata information could not be found for EntityType 'ConsoleApplication2.Service'.

this is my POCOs with parent (Solution ) and child ( service).

public partial class Solution
{
    #region Primitive Properties

    public virtual int Id
    {
        get;
        set;
    }

    public virtual string Name
    {
        get;
        set;
    }

    #endregion
}


public partial class Service : ServiceBase
{
}
public partial class ServiceBase : Solution
{
    #region Primitive Properties

    public virtual string Details
    {
        get;
        set;
    }

    #endregion
}

is there any workaround to solve this as i need to have base