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
Post a Comment