ebb
ebb

Reputation: 9377

EF + Code First + MemberShip

What I'm trying to:

Get User By Id => Use the Id to get the cases the user have assigned => Return the cases.

My question is:

I know that I need to reference the MemberShip User table to the Cases table, but should I define the membership User table where I get the User as a POCO like my other tabels in my project?

Thanks in advance.

Upvotes: 1

Views: 731

Answers (1)

Myra
Myra

Reputation: 3656

If you need only ID field,then pass your class only ID.If you need more fields then you can make a custom class that holds information about User.

Also know that all the information of User class is retrieved from Database.There is also another way if you persist on using database by extending membership procedures.

Best Regards
Myra

Upvotes: 1

Related Questions