Click here to Skip to main content
15,887,304 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi Developers, I am creating asp.net core 2.1 project with postgresql.
I need to create new 4 tables everytime when user register on my Website
(it means when new row inserted in User table,new 4 tables created automatically).
I search a lot,but not find any way to solve this using entity framework core.
I also want to use SQL Stored procedures and Views in this Project.

1) How can i solve this using entity framework core?
2) May i need to use ado.net for this rather than efcore?

What I have tried:

I tried using Npgsql.EntityFrameworkCore.PostgreSQl but can't create, what i needed.
Posted
Comments
MadMyche 22-Aug-18 14:44pm    
Are you sure you need to create 4 new tables when a user registers, or do you just need to split their information as entries into 4 existing tables?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900