DictionaryWallStyle dict = new DictionaryWallStyle(db);
String
stylename = "Cavity";
String
description = "Cavity Wall
Style";
//判断是否已经存在
if
(!(dict.Has(stylename, trans)))
{
//不存在,创建
WallStyle style = new WallStyle();
style.Description =
description;
//加入字典
dict.AddNewRecord(stylename, style);
//加入事务
tm.AddNewlyCreatedDBObject(style, true);
}