public void Create(string type) { var settings = new TFileSystemProviderSettings { Type = type }; using (IScope scope = _scopeProvider.CreateScope()) { var database = scope.Database; database.Insert(settings); scope.Complete(); } }
public void Create(string type) { var settings = new TFileSystemProviderSettings { Type = type }; try { using (IScope scope = _scopeProvider.CreateScope()) { var database = scope.Database; database.Insert(settings); scope.Complete(); } } catch { //Assume table doesn't exist yet } }