c# - Copy database tables from one database to another DB EF code first -


i have database 2 tables :

employee       salary ========      ================ id name        id empid  salary 

and of course there class each table implement code first migration.

is there way copy database tables source database database , change names of tables using ef code-first?

ps: target method create default database default structure , when new client register create own tables in existing database new name

in case entity framework layer code differ client client? since have more table on 1 client one. can change name modelbuilder.entity().totable("mytesttablename"); fluent api or table attribute [table("mytesttablename")] public class test { } etc


Comments

Popular posts from this blog

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -