public ITable <TKey, TRecord> OpenXTablePortable <TKey, TRecord>(string name) { DataType keyDataType = DataTypeUtils.BuildDataType(typeof(TKey)); DataType recordDataType = DataTypeUtils.BuildDataType(typeof(TRecord)); return(OpenXTablePortable <TKey, TRecord>(name, keyDataType, recordDataType, null, null)); }
public ITable <TKey, TRecord> OpenXTablePortable <TKey, TRecord>(string name) { var keyDataType = DataTypeUtils.BuildDataType(typeof(TKey)); var recordDataType = DataTypeUtils.BuildDataType(typeof(TRecord)); var keyTransformer = new DataTransformer <TKey>(typeof(TKey)); var recordTransformer = new DataTransformer <TRecord>(typeof(TRecord)); return(OpenXTablePortable <TKey, TRecord>(name, keyDataType, recordDataType, null, null)); }
public ITable <TKey, TRecord> OpenXTable <TKey, TRecord>(string name) { lock (SyncRoot) { Type keyType = typeof(TKey); Type recordType = typeof(TRecord); DataType keyDataType = DataTypeUtils.BuildDataType(keyType); DataType recordDataType = DataTypeUtils.BuildDataType(recordType); var item = Obtain(name, StructureType.XTABLE, keyDataType, recordDataType, keyType, recordType); if (item.Direct == null) { item.Direct = new XTable <TKey, TRecord>(item.Table); } return((XTable <TKey, TRecord>)item.Direct); } }