private void EnsureTables(ITableEntityOperation tableEntityOperations) { if (!_created) { // for management tableEntityOperations.EnsureTable("LoginUser"); tableEntityOperations.EnsureTable("User"); tableEntityOperations.EnsureTable("Company"); tableEntityOperations.EnsureTable("Service"); tableEntityOperations.EnsureTable("Network"); tableEntityOperations.EnsureTable("Device"); tableEntityOperations.EnsureTable("Setting"); // for data tableEntityOperations.EnsureTable("CurrentData"); tableEntityOperations.EnsureTable("TimeSeries"); } _created = true; }
public void Initialize() { TableEntityOperation.EnsureTable(TableName); }