<!--StartFragment -->
DatasourceConnectionInfo info = new DatasourceConnectionInfo(); // 设置数据源位置为内存中,类型为UDB info.Server = ":memory:"; info.EngineType = EngineType.UDB; m_datasource = m_workspace.Datasources.Create(info);
这样试试呢