Can I generate UserId for Entity Framework AspNet Identity manually?
问题 I need to generate new Guid value myself. Currently I created helper table with this structure: (id, aspnet_id) And whenever I need to get a User or list of users, I have to join those two tables. Can I tell Entity Framework Identity Manager to not generate new Guids but to use generated-by-me value? 回答1: You are right, the guid is not generated in the database. If you take a look at the table you'll notice that the field doesn't have a default value. Besides that, with Entity Framework