mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 17:23:27 -05:00
Enabling database properties general tab with real time values from SMO (#2093)
* initial commit with all required db handler and props, also getting the data from ADS * database properties view updated * Delete Microsoft.SqlTools.ServiceLayer.sln This file should be ignored * Removed unwanted file * Using DatabaseHandler for properties as one handler per object * removed unused and unnecessary changes * minimal updates * moving type conversion to UI side, properties with original types. * conversion number fixed * Adding Localized strings * using existing objectUrn logic to get the smo object * Adding Integration tests for database properties verification * refactoring * updating test
This commit is contained in:
committed by
GitHub
parent
532f7b0912
commit
5c7dae40e6
@@ -345,5 +345,15 @@ namespace Microsoft.SqlTools.ServiceLayer.Utility
|
||||
return new string(nameChars);
|
||||
}
|
||||
private static readonly HashSet<char> illegalFilenameCharacters = new HashSet<char>(new char[] { '\\', '/', ':', '*', '?', '"', '<', '>', '|' });
|
||||
|
||||
/// <summary>
|
||||
/// Converts value in KBs to MBs
|
||||
/// </summary>
|
||||
/// <param name="valueInKb">value in kilo bytes</param>
|
||||
/// <returns>Returns as double type</returns>
|
||||
public static double ConvertKbtoMb(double valueInKb)
|
||||
{
|
||||
return (Math.Round(valueInKb / 1024, 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user