Generate Code No Response
Generate Code No Response
I use the trial version of EntityDeveloper, and generate code success normally, but when I design the ORM, it didn't response, I don't know why.
Would you help me? Thanks!
Would you help me? Thanks!
Re: Generate Code No Response
The code is automatically regenerated when the model is saved.daview wrote:I use the trial version of EntityDeveloper, and generate code success normally, but when I design the ORM, it didn't response, I don't know why.
If it is not the case, please specify the issue you have encountered in more details:
- the ORM framework you are working with - EF, NHibernate, LINQ to SQL;
- what do you mean about "when I design the ORM, it didn't response", e.g. the steps you are performing, etc;
- whether you are getting any errors, warnings;
- the template you are using for code generation.
Re: Generate Code No Response
thanks!MariiaI wrote:The code is automatically regenerated when the model is saved.daview wrote:I use the trial version of EntityDeveloper, and generate code success normally, but when I design the ORM, it didn't response, I don't know why.
If it is not the case, please specify the issue you have encountered in more details:
- the ORM framework you are working with - EF, NHibernate, LINQ to SQL;
- what do you mean about "when I design the ORM, it didn't response", e.g. the steps you are performing, etc;
- whether you are getting any errors, warnings;
- the template you are using for code generation.
I use the VS 2013, it can be automatic generate code, but, have some bugs it make the vs exit.
I use the EntityDeveloper Enviroment, when I press F7 to generate code, it no any action: no errors, no any messages, no code files.
Re: Generate Code No Response
You are using Entity Developer in Visual Studio 2013, aren't you? If yes, the code is generated when the changes to the model are made and the model is saved. If it is stand-alone application, you should use F7 for code generation or the Generate Code button on the toolbar (JIC: F7 doesn't apply when working in Visual Studio).I use the EntityDeveloper Enviroment, when I press F7 to generate code, it no any action: no errors, no any messages, no code files.
Also, make sure that one of the available templates is available for the model: expand the Templates node in Model Explorer - there should be at least one template, e.g. 'DbContext'.
Please specify the bugs you have encountered in more details, e.g. the exact steps to reproduce the issue with Visual Studio, etc.I use the VS 2013, it can be automatic generate code, but, have some bugs it make the vs exit.
Please also look at the Entity Developer documentation, which is available with the installation package (the "Help" component should have been selected when installing).
Re: Generate Code No Response
the problem is checked: my orm struct have some errors. but the F6 check is OK.MariiaI wrote:You are using Entity Developer in Visual Studio 2013, aren't you? If yes, the code is generated when the changes to the model are made and the model is saved. If it is stand-alone application, you should use F7 for code generation or the Generate Code button on the toolbar (JIC: F7 doesn't apply when working in Visual Studio).I use the EntityDeveloper Enviroment, when I press F7 to generate code, it no any action: no errors, no any messages, no code files.
Also, make sure that one of the available templates is available for the model: expand the Templates node in Model Explorer - there should be at least one template, e.g. 'DbContext'.
Please specify the bugs you have encountered in more details, e.g. the exact steps to reproduce the issue with Visual Studio, etc.I use the VS 2013, it can be automatic generate code, but, have some bugs it make the vs exit.
Please also look at the Entity Developer documentation, which is available with the installation package (the "Help" component should have been selected when installing).
and have another question:
1, when it have more ORM classes, it generate code will take more time.
2, could show a dialog when generate as a message?
3, when make the TPH inherit, it always lost the config when F6 check.
4, in diagram, if it can be make diferrent text color or border color?
5, in VS enviroment, disigner has bug make the vs exit.
(sorry for my poor English)
Re: Generate Code No Response
Please specify, whether the code generation takes a long time to perform or the designer hangs.1, when it have more ORM classes, it generate code will take more time.
Please also send us your model with which this issue is reproducible.
The dialog window with a progress bar is shown only when generating code in a standalone version of Entity Developer.2, could show a dialog when generate as a message?
Please send us your model and describe the steps we should perform to reproduce this issue.3, when make the TPH inherit, it always lost the config when F6 check.
The color of the diagram is defined by the following setting:4, in diagram, if it can be make diferrent text color or border color?
- (for a separate diagram) right click on the diagram surface -> Options-> General -> Background Color
- (for all diagrams) Visual Studio > Tools > Options > Entity Developer > Diagram > General > Background Color
The color of the entity class on the diagram is defined by the following setting:
- right-click the necessary entity class and select properties;
- change the Shape Color property and save the changes.
Please specify the exact steps to reproduce the issue with Visual Studio.5, in VS enviroment, disigner has bug make the vs exit.
We recommend you to take a look at the Entity Developer documentation, which is available in the installation package (the "Help" component should have been selected when installing).
Re: Generate Code No Response
2, when generate code, no any notify, sometimes, I think it was some wrong occured.
3, I will send the model to you.
4, I want to use the different color to markup the shapes in different diagram, but the color is limited(can be directly recognize by eyes), so, if it canbe use the shape color and the shape border color, will be best.
5, sometimes, when I design the model, the VS auto shutdown.
3, I will send the model to you.
4, I want to use the different color to markup the shapes in different diagram, but the color is limited(can be directly recognize by eyes), so, if it canbe use the shape color and the shape border color, will be best.
5, sometimes, when I design the model, the VS auto shutdown.
Re: Generate Code No Response
Thank you for the test model. Your model includes very large number of classes, enum types, complex types, associations, etc. and, in this case, we recommend you to split your model into several independent of each other ones. This significantly will speed up the process of the code generation and facilitate the work with a designer.
As for the other issues, unfortunately, the information you've provided is not enough to reproduce them and find the solutions. Please describe the exact step-by-step scenario we should perform to reproduce these issues with your model (i.e. the issue with the inheritance, etc.).
As for the other issues, unfortunately, the information you've provided is not enough to reproduce them and find the solutions. Please describe the exact step-by-step scenario we should perform to reproduce these issues with your model (i.e. the issue with the inheritance, etc.).
Re: Generate Code No Response
Thanks!
1. How to split the edm? By manual? Do you has another way to do it?
2. Pherhaps it is wrong by my computer enviroment, when I use the integrated enviroment on VS to designer, always quit suddenly. So, I always use the standlone enviroment, but, when I copy and paste the EDM to VS project, it will be auto generate code, is it can be configed?
3. I have some TPH derived classes, example MeasureInfo to MeasureWeight, MeasureCapacity, MeasureDimension, MeasureDimensions etc. When I use the command "Regenerate Storage and Mapping", the configuration of TPH will be reset.
4. When use standlone enviroment, sometimes, it will delete the association, I don't know why.
5. I want to program the T4 template, but no the Entity Developer document about the entity info.
Best Regards to you!
1. How to split the edm? By manual? Do you has another way to do it?
2. Pherhaps it is wrong by my computer enviroment, when I use the integrated enviroment on VS to designer, always quit suddenly. So, I always use the standlone enviroment, but, when I copy and paste the EDM to VS project, it will be auto generate code, is it can be configed?
3. I have some TPH derived classes, example MeasureInfo to MeasureWeight, MeasureCapacity, MeasureDimension, MeasureDimensions etc. When I use the command "Regenerate Storage and Mapping", the configuration of TPH will be reset.
4. When use standlone enviroment, sometimes, it will delete the association, I don't know why.
5. I want to program the T4 template, but no the Entity Developer document about the entity info.
Best Regards to you!
Re: Generate Code No Response
Yes, it should be done manually. The "Create Model Wizard" offers to select the necessary classes, which should be included to the model.1. How to split the edm? By manual? Do you has another way to do it?
Probably, the Visual Studio integration was not completely performed. Please specify the edition/version of your Visual Studio. Also, tell us whether you get any exception when Visual Studio quits ( if yes, please send us the full stack trace of this exception) and send us the list of Installed Products in Microsoft Visual Studio (via Help -> About Microsoft Visual Studio menu).2. Pherhaps it is wrong by my computer enviroment, when I use the integrated enviroment on VS to designer, always quit suddenly.
Try re-installing Entity Developer and tell us about the results.
We will investigate this issue and inform you about the results as soon as possible.3. When I use the command "Regenerate Storage and Mapping", the configuration of TPH will be reset.
If we correctly understand the issue you have encountered, it is related to the many-to-many associations. If yes, please uncheck the "Detect Many-To-Many associations" check box on the "Model properties" step of the Create Model Wizard. You can also uncheck the "Detect Many-To-Many associations" check box for your existing model in the Model Settings (by double-clicking the diagram layout). However, to make these changes take effect, it is necessary to recreate the model, e.g. run the "Update Model From Database" wizard with the "Recreate model" check box selected.4. When use standlone enviroment, sometimes, it will delete the association, I don't know why.
Please refer to the corresponding topics in the Entity Developer documentation:
- ORM Support-> Entity Framework-> Creating Models
- ORM Support-> Entity Framework-> Concepts-> Working with Associations
Please refer to http://forums.devart.com/viewtopic.php?t=307665. I want to program the T4 template, but no the Entity Developer document about the entity info.
Re: Generate Code No Response
We have investigated this behaviour and this is as expected. In this case there is no possibility to restore mapping after it has been deleted, due to the technical reasons. The "Regenerate Storage and Mapping" doesn't handle all situations and the dialog window, which is shown before regeneration, warn about it. This option is most suitable for the Model First approach and first initialization.3. When I use the command "Regenerate Storage and Mapping", the configuration of TPH will be reset.
We do not recommend you to make "Regenerate Storage and Mapping" for whole your model. You can use "Create Storage and Mapping" for the necessary objects in the model and you can also turn on the automatic synchronization.
Please refer to the corresponding topics in the Entity Developer documentation:
- Basic Workflows -> Design Approaches-> Mixed Approach
- ORM Support-> Entity Framework-> Concepts-> Storage Metadata Schema -> Mapping Synchronization