This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "name": "miorigendedatosdocumentdb", | |
| "type": "documentdb", | |
| "credentials": { | |
| "connectionString": "AccountEndpoint=https://miServicioDocumentDb.documents.azure.com;AccountKey=miKeyDeAutorizacionDocDb;Database=idDeMiBaseDeDatosDocDb" | |
| }, | |
| "container": { | |
| "name": "idDeLaColeccionDocDb", | |
| "query": "SELECT p.id, p.Titulo, p.Director, p.Genero, p._ts FROM Peliculas p WHERE p._ts > @HighWaterMark" | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using Microsoft.WindowsAzure.ServiceRuntime; | |
| using Microsoft.WindowsAzure.Storage; | |
| public static CloudStorageAccount GetAccount() | |
| { | |
| const string configName = "AccountKeyEnConfig"; | |
| string value = RoleEnvironment.GetConfigurationSettingValue(configName); | |
| return CloudStorageAccount.Parse(value); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Table; | |
| public object GetEntity(string partitionKey, string rowKey) | |
| { | |
| CloudStorageAccount account = GetAccount(); | |
| CloudTableClient cloudTableClient = account.CreateCloudTableClient(); | |
| CloudTable table = cloudTableClient.GetTableReference("NombreDeLaTabla"); | |
| TableOperation retrieveOperation = TableOperation.Retrieve(partitionKey, rowKey); | |
| TableResult retrievedResult = table.Execute(retrieveOperation); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Table; | |
| TableQuery query = new TableQuery() | |
| .Where(TableQuery.GenerateFilterCondition("Nombre", QueryComparisons.Equal, "Guillermo")); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | string filtro1 = TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "Argentina"); | |
| string filtro2 = TableQuery.GenerateFilterCondition("Nombre", QueryComparisons.Equal, "Guillermo"); | |
| string filtroCombinado = TableQuery.CombineFilters(filtro1, TableOperators.And, filtro2); | |
| TableQuery query = new TableQuery().Where(filtroCombinado); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CloudTable customerTable = tableClient.GetTableReference("clientes"); | |
| TableQuery query = new TableQuery().Select(new string[] { "Nombre" }); | |
| customerTable.ExecuteQuery(query); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | query.Take(10); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | TableQuery query = new TableQuery() | |
| .Where(TableQuery.GenerateFilterCondition("Nombre", QueryComparisons.Equal, "Guillermo")) | |
| .Select(new string[] { "Email" }) | |
| .Take(5); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | POST https://[Nombre del servicio de Search].search.windows.net/indexers/[nombre del indexador]/run?api-version=[api-version] | |
| api-key: [Key de administrador del servicio de Search] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | POST https://[Nombre del servicio de Search].search.windows.net/indexes?api-version=[api-version] | |
| Content-Type: application/json | |
| api-key: [Key de administrador del servicio de Search] |