internal SqlUserDefinedFunction(ArmResource options, SqlUserDefinedFunctionData resource) : base(options, resource.Id)
 {
     HasData                 = true;
     _data                   = resource;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _sqlResourcesRestClient = new SqlResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Пример #2
0
        SqlUserDefinedFunction IOperationSource <SqlUserDefinedFunction> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = SqlUserDefinedFunctionData.DeserializeSqlUserDefinedFunctionData(document.RootElement);

            return(new SqlUserDefinedFunction(_client, data));
        }
Пример #3
0
 internal SqlUserDefinedFunction(ArmClient armClient, SqlUserDefinedFunctionData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }
Пример #4
0
 internal SqlUserDefinedFunctionResource(ArmClient client, SqlUserDefinedFunctionData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }