コード例 #1
0
 public DataWord CreateDataWord(DataWordType dwType)
 {
     DataWord word = new DataWord("新常量", dwType);
     word.Id = StringHelper.GetNewGuid();
     this.currentUnitOfWork.RegisterNew(word);
     this.currentUnitOfWork.Commit();
     return word;
 }
コード例 #2
0
 public DataWordType CreateDataWordType()
 {
     DataWordType type = new DataWordType("新类型");
     type.Id = StringHelper.GetNewGuid();
     type.DataWords = new List<DataWord>();
     this.currentUnitOfWork.RegisterNew(type);
     this.currentUnitOfWork.Commit();
     return type;
 }
コード例 #3
0
ファイル: DataWord.cs プロジェクト: vanloc0301/mychongchong
 public DataWord(string name, DataWordType type) : base(name)
 {
     this.type = type;
 }