C# Class Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.ServerDataServiceContext

Common abstract class for the generated ServerContextInternal class.
Inheritance: Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.ServerContextInternal
ファイルを表示 Open project: Azure/azure-powershell

Protected Methods

Method Description
OnEnhanceRequest ( HttpWebRequest request ) : void

Handler to add additional headers and properties to the request.

RefreshEntity ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database database ) : Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database

Refresh the object by requerying for the object and merge changes.

RefreshEntity ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy databaseCopy ) : Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy

Refresh the object by requerying for the object and merge changes.

RevertChanges ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database database ) : void

Revert the changes made to the given object, detach it from the context.

RevertChanges ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy databaseCopy ) : void

Revert the changes made to the given object, detach it from the context.

ServerDataServiceContext ( Uri serviceUri ) : System

Initializes a new instance of the ServerDataServiceContext class.

Private Methods

Method Description
BeforeSendingRequest ( object sender, System.Data.Services.Client.SendingRequestEventArgs e ) : void

Handler that appends the token to every data access context request.

Method Details

OnEnhanceRequest() protected method

Handler to add additional headers and properties to the request.
protected OnEnhanceRequest ( HttpWebRequest request ) : void
request System.Net.HttpWebRequest The request to enhance.
return void

RefreshEntity() protected method

Refresh the object by requerying for the object and merge changes.
protected RefreshEntity ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database database ) : Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database
database Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database The object to refresh.
return Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database

RefreshEntity() protected method

Refresh the object by requerying for the object and merge changes.
protected RefreshEntity ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy databaseCopy ) : Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy
databaseCopy Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy The object to refresh.
return Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy

RevertChanges() protected method

Revert the changes made to the given object, detach it from the context.
protected RevertChanges ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database database ) : void
database Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.Database The object that is being operated on.
return void

RevertChanges() protected method

Revert the changes made to the given object, detach it from the context.
protected RevertChanges ( Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy databaseCopy ) : void
databaseCopy Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server.DatabaseCopy The object that is being operated on.
return void

ServerDataServiceContext() protected method

Initializes a new instance of the ServerDataServiceContext class.
protected ServerDataServiceContext ( Uri serviceUri ) : System
serviceUri System.Uri The service's base .
return System