You can check below mentioned article for complete example about custom membership provider.
That article has the section for
EF implemention also.Check this section
"Quick Guide to Entity Framework (Code First) Based Implementation"
Custom Membership Providers[
^]
I hope this will help to you.