I wanted to create programmatically a new table, which will list the user names and emails of all the users. Here's the code:
Code:
var query =
from u in myEntities.aspnet_Users
join m in myEntities.aspnet_Membership
on u.UserId
equals m.UserId into userList
select new
{
UserName = u.UserName,
Email = u.aspnet_Membership.Email,
};
myEntities.SaveChanges();
I get no error when run the code, however, the userList table is not created.
Any help on this issue will be highly appreciated.
By the way, creating tables programmatically is not covered in this book. Is it covered in "Professional ASP.NET 4 in C# and
VB"?