asp.net - Entity Framework migrations and refactor model into separate project -
i started out asp.net mvc project entity framework code first , migrations enabled. using standard template got model in same project rest of web site. want re-use model in project, cannot find step-by-step recipe how move model , migrations history, separate project. biggest concerns database comes out of sync model, or data in database lost. maybe it's nothing afraid of, i'll happy if can share experience! ok when have migrations turned on can move context, associated entities , migration configurations new project no problem. if leave of namespaces should not need change anything. because key migration history in database based on namespace + class of migration configuration file. example in web application have migrations @ codemigrations.migrations so contextkey in __migrationhistory table ends being codemigrations.migrations.configuration if move code new project , leave namespaces nothing need changed, if want namespaces updated reflect new base ...