It is not possible to convert your code classes to database classes. Creating a model from the database will create an entirely new set of classes, regardless of the availability of your code classes.
However, you may not want to immediately remove your first code classes. The original entity database model creates partial classes for all entity objects. If your code classes have any business logic (something other than simple old properties), you can declare them as partial, remove properties, and maintain business logic. Essentially, you allow EF to generate properties in the * Designer.cs file, while you define the business logic in your .cs files.
source
share