Enterprise Architect for Entity Framework

178 views
Skip to first unread message

America@localhost Pierre America

unread,
Aug 11, 2014, 8:06:39 AM8/11/14
to sparx-enterprise-archite...@googlegroups.com
Currently I am exploring the use of Enterprise Architect for generating C# code as input for Entity Framework (EF) Code First. Entity Framework is a Microsoft technology for object-relational mapping. From C# code, following certain conventions, it can generate database definitions with convenient interfaces for programming. It also serves as a starting point for creating web applications, either by ASP.NET Dynamic Data or ASP.NET MVC scaffolding.

Although EF has its own modeling tool, I still like modeling in Enterprise Architect better, because it can be at a slightly higher conceptual level. Generating code from EA is not completely trivial, however. I have been adapting the C# code generation templates with some success, but there are also limitations that force me to find a workaround.

Does anyone have experience with this? Then we could exchange some tricks or so.

[original message]

Dermot

unread,
Aug 12, 2014, 10:25:16 PM8/12/14
to sparx-enterprise-archite...@googlegroups.com
Pierre, have a look at the MDA transforms. This includes transforms from Logical model Class to C#, DBMS specific and XSD and WSDL:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/model_transformation/mdastyletransforms.html
See also the paper on it's specific application to Data modeling:
http://community.sparxsystems.com/white-papers/669-data-modeling-from-conceptual-model-to-dbms

[original message]

David Kolb

unread,
Feb 27, 2016, 8:40:43 AM2/27/16
to Sparx Enterprise Architect General
Pierre, how is this going? Are you able to generate anything for relationships, enums, attributes, derived entities?

David Kolb

unread,
Mar 1, 2016, 9:25:58 PM3/1/16
to Sparx Enterprise Architect General
Nevermind. I've decided to go with pure EF Code First. EA just did not work well with EF.
Reply all
Reply to author
Forward
0 new messages