D365 Project Properties
Some important properties in Visual Studio need to be set for the D365 project.
Model and Layer are two important parts of Dynamics 365. The model tells the system where and the code and other related elements get stored in binary. Layers are used to manage the application element in a predefined manner.
Layer and model has 1 to many relation , 1 layer can have multiple models but a model can only belong to single layer.
Note: Here, we use Fleet management as a model, it's used for training purposes. we can change the model later after creating the project but we can not change the layer after creating the project as the layer is associated with model we can change the layer when new model is created. Mostly, the developer works on the CUS, USR, or ISV layer according to the need.
2. Change project model and build setting
we can change model of the project, but we can only change model when we have empty project if we have any elements in project we can not change model. Only elements can be added to the project which belong to that model.
to change the model right click on project and select properties
Following are some imported properties which you need to change frequently.
- Startup Object Type : Type of Object need run when you start a project
- Startup Object : Element name which need to run at the start of project
- Model : You can chose model on which you need to do your development
- Synchronize database : Set true to run sync whenever we build project.
Synchronize database need to set to true based on task you are doing, for example, you created a table or added a field to a table, or did some calculations on the table. All of these things require the SQL database to change. The Synchronize Database on the property must be set to True for the system to sync database changes. If It's False you need to sync the database separately after building the project, So, it's a best practice to set the property as True.
Comments
Post a Comment