PML .NET Tricks

List of all Database Design Element Types

customization


foreach (DbElementType dbElementType in DbElementType.GetAllElementTypes())
{
if (dbElementType.SupportsDbType(DbType.Design))
{
Console.WriteLine(String.Format(“ShortName:{0} Desc:{1} FullName:{2}”,
dbElementType.Name,
dbElementType.Description,
dbElementType.ShortName));
}
}

Output:

ShortName:SPMGSB Desc:General surface boundary FullName:SPMGSB
ShortName:SPMHSB Desc:Hull surface boundary FullName:SPMHSB
ShortName:SPMRSB Desc:Reference surface boundary FullName:SPMRSB
ShortName:MWLDTB Desc:Weld table FullName:MWLDTB

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s