ASP.NET MVC How to Manipulate Table Users Using Code First

1

I am studying MVC ASP.NET code first . I am a beginner and I have a probably basic doubt. When you start a project, it already creates a basic application, including the User table. I happen to want to make a relationship between this User table and another that I'll create, for example Comments . So there are two questions:

a) To make the relationship in the code first, I need to say that the User table has a virtual list of Comments. How do I do this if I do not see the User model?

b) How do I set the field rules for the Fluent API , if I do not have the Model?

Thank you !!

    
asked by anonymous 13.03.2017 / 09:47

1 answer

1

Hello, I think the article ASP.NET Identity - Customizing user registration on Eduardo Píres' blog, can help you.

I hope to have help.

    
17.03.2017 / 14:47