mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Minor follow-ups for user management support classes (#1857)
This commit is contained in:
@@ -271,7 +271,7 @@ WHERE do.database_id = @DbID
|
||||
|
||||
isSystemDB = db.IsSystemObject;
|
||||
|
||||
ResourceManager manager = new ResourceManager("Microsoft.SqlServer.Management.SqlManagerUI.CreateDatabaseStrings", typeof(DatabasePrototype).Assembly);
|
||||
ResourceManager manager = new ResourceManager("Microsoft.SqlTools.ServiceLayer.Localization.SR", typeof(DatabasePrototype).Assembly);
|
||||
|
||||
this.owner = db.Owner;
|
||||
|
||||
@@ -2012,7 +2012,7 @@ WHERE do.database_id = @DbID
|
||||
(this.currentState.owner != this.originalState.owner))
|
||||
{
|
||||
//
|
||||
// bug 20000092 says the error message is confusing if this fails, so
|
||||
// the error message is confusing if this fails, so
|
||||
// wrap this and throw a nicer error on failure.
|
||||
//
|
||||
try
|
||||
|
||||
@@ -180,9 +180,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Admin
|
||||
{
|
||||
get { return this.ServerVersion.Major > 11 && this.AzureEdition != AzureEdition.DataWarehouse; }
|
||||
}
|
||||
|
||||
// [Browsable(false)]
|
||||
// public SubscriptionLocationKey AzureServiceLocation { get; set; }
|
||||
|
||||
public string BackupStorageRedundancy
|
||||
{
|
||||
|
||||
@@ -67,9 +67,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Security
|
||||
|
||||
private UserPrototype InitUserNew(CDataContainer dataContainer, UserInfo user)
|
||||
{
|
||||
// this.DataContainer = context;
|
||||
// this.parentDbUrn = new Urn(this.DataContainer.ParentUrn);
|
||||
// this.objectUrn = new Urn(this.DataContainer.ObjectUrn);
|
||||
ExhaustiveUserTypes currentUserType;
|
||||
UserPrototypeFactory userPrototypeFactory = UserPrototypeFactory.GetInstance(dataContainer, user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user