Classes are the main objects of the model. They are represented as shapes on the diagram that can be moved, resized etc.
Classes can be added to the model either by dragging existing tables from the Database Explorer, or by creating a new class manually.
To create a new class manually, use one of the following ways:
on the Model toolbar.Any of these actions calls the Class Editor dialog where you can set parameters for the class and create class properties.
To create an empty class with the default name:
To add an existing class from the Model Explorer window to the diagram area together with the objects related to it, right-click the required class in the Model Explorer window and then select the Add On Diagram With Related context menu option.
Apart from dragging objects from Database Explorer to the model, the Database Explorer window has a set of means designed for adding new classes to a model. These means are implemented as context menu options of a table in Database Explorer:
Double-click the class on the diagram or in Model Explorer to edit it. The Class Editor dialog will be displayed. In the Class Editor, you can set class parameters and edit class properties.
To add a property, use either the shortcut menu of the Class Properties grid or the INSERT key, or select the required class and press ALT+P. The Property Editor dialog will be displayed where you can set the property parameters. For more information on property editing, see the Columns topic. To change the property order, drag the properties to their right places.
To delete a class use one of the following options:
Entity Developer will then ask you whether you want to delete the object from the model too.
If you want to overload CRUD operations for your class or define them to the particular class - read more about it in Update methods article.