public DataWord CreateDataWord(DataWordType dwType)
 {
     DataWord word = new DataWord("新常量", dwType);
     word.Id = StringHelper.GetNewGuid();
     this.currentUnitOfWork.RegisterNew(word);
     this.currentUnitOfWork.Commit();
     return word;
 }
 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;
 }
Beispiel #3
0
 public DataWord(string name, DataWordType type) : base(name)
 {
     this.type = type;
 }