ssdl view and TPT

I want to do the same than my last post with TPT.

I add this in ssdl:

<EntitySet Name=Managers EntityType=TestModel1.Store.Managers>


        SELECT DISTINCT EmployeeManager

        FROM EmployeesWithManager



<EntityType Name=Managers>


        <PropertyRef Name=EmployeeManager />


    <Property Name=EmployeeManager Type=int Nullable=false />


Then, I just need to create Manager entity type, add inheritance between it and Employee entity type, map EmployeeManager ssdl view with EmployeeId property and it’s all.

It’s too easy to use Entity Framework, isn’t it? [;)]

This entry was posted in 7671, 7674, 7675. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *