public override void Init(int flowCount, long flowRecordCount) { fileName = Path.Combine(DataDirectory, string.Format("{0}.perst", CollectionName)); perst = StorageFactory.Instance.CreateStorage(); perst.SetProperty("perst.multiclient.support", true); perst.Open(fileName); index = perst.CreateIndex(typeof(long), false); }
void CreateStorage() { storage = StorageFactory.Instance.CreateStorage(); // create in-memory storage storage.Open(databasePath, 0); db = new Database(storage, true); db.BeginTransaction(); if (db.CreateTable(typeof(EmployeeTable))){ Results.Text = "Table Created"; } else { Results.Text = "Table Already Exits"; } db.CommitTransaction(); }