PowerDesigner 更加数据库模型生成 ef 实体

PowerDesigner 数据库模型生成 ef 实体模板

Profile\Attribute\Templates\definition


.if (%isGenerated%) and (%isValidAttribute%)

/// <summary>
/// %Name%
/// </summary>
\[Column("%Code%"\]
[%visibility% ][%flags% ]%dataType% 
.convert_name(%Code%,"_",,FirstUpperChar)
{ get; set; }

.endif

Profile\Class\Templates\definition


[%comment%\n][%oidDocTag%\n][%classProperties%\n][%visibility% ][%flags% ][%isPartialType%?partial ]class 
.convert_name(%Code%,"_",,FirstUpperChar)
[%genericTypeParameters%][ : %inheritanceList%][ %genericTypeConstraints%]
{
[   %members%\n
][   %innerClasses%\n
][   %innerInterfaces%\n
]}

Profile\Classifier\Templates\sourceBody

.// only toplevel classes are generated
.if (%ContainerClassifier% == null)
.// header and usings
[%usings%\n
][%Package.comment%
].// class/interface definition appears within a given namespace
namespace SSharing.Ubtrip.Model.Flight_Intl  //名称空间
{
   \[Table("%Code%")\]
   %definition%
}
[\n\n%sourceFooter%]
.endif

PowerDesigner 更加数据库模型生成 ef 实体

上一篇:一条sql语句在mysql中是如何执行的


下一篇:Django如何把SQLite存储的数据迁移至Mysql数据库中