public bool SaveQuery(string path) { var fileName = GenerateFileName(path); var parameters = new StorageParameters { FileName = fileName }; var query = GenerateQuery(); if (query == null) { return(false); } _storage.SaveQuery(query, parameters); LinqQuery = ""; SqlQuery = ""; if (!ValidationResults.Any()) { var schemaFileName = Path.Combine(path, $"Schema.json"); LinqQuery = _linqGenerator.GenerateQuery(schemaFileName, fileName); } return(true); }
public void SaveQuery(string path) { var fileName = GenerateFileName(path); var parameters = new StorageParameters { FileName = fileName }; var query = GenerateQuery(); _storage.SaveQuery(query, parameters); }