This is a small portion of code. We use ASP.NET identity, using [login to view URL] table to join [login to view URL] to our own table's CreatedById, So as we could store who created the record. That works fine.
We would like to use [login to view URL] as integer instead of GUID string. That would be the job to modify.
This is a Code First [login to view URL] project, created in Visual Studio 2015 Community.
The unit test creates the db, after than you can login which creates the record in [login to view URL] table.
The project is 130 MB so you can download here:
[login to view URL]