Exemplo n.º 1
0
 public Database()
 {
     Engine = new Engine();
     Engine.Restart();
     Engine.LoadAssembly(Assembly.GetExecutingAssembly());
     FunctionTable = new FunctionTable {
         Database = this
     };
     ImagePartTable = new ImagePartTable {
         Database = this
     };
     ConfigDictionary = new ConfigDictionary {
         Database = this
     };
     Root = new PartFolder {
         Database = this
     };
 }
Exemplo n.º 2
0
 /// <summary>
 /// 将源数据库合并到目标项目
 /// </summary>
 /// <param name="owner">目标项目</param>
 /// <param name="database">源数据库</param>
 /// <param name="over">是否覆盖元件定义</param>
 public void Merge(PartFolder owner, Database database, bool over)
 {
     FunctionTable.Merge(database.FunctionTable, over);
     ImagePartTable.Merge(database.ImagePartTable, over);
     owner.Merge(database.Root, over);
 }