This file contains 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
modelBuilder.Entity().ToTable("Jogadores"); | |
modelBuilder.Entity().ToTable("Artilheiros"); | |
modelBuilder.Entity().ToTable("Goleiros"); |
This file contains 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
[Table("Jogadores")] |
This file contains 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
public class JogadoresContext:DbContext | |
{ | |
public DbSet Jogadores { get; set; } | |
public JogadoresContext() | |
{ | |
Database.SetInitializer(new DropCreateDatabaseAlways()); | |
} | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) |
This file contains 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
public class Artilheiro : Jogador | |
{ | |
public int GolsMarcados { get; set; } | |
public void MarcarGol() | |
{ | |
} | |
} |
This file contains 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
public class Jogador | |
{ | |
public int Id { get; set; } | |
public string Nome { get; set; } | |
} |
This file contains 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
try { | |
$queueRestProxy->createQueue("cTwit", $createQueueOptions); | |
} catch(ServiceException $e){ | |
$code = $e->getCode(); | |
$error_message = $e->getMessage(); | |
echo $code.": ".$error_message." | |
"; | |
} |
This file contains 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
$filter = "User eq 'MayogaX'"; | |
try { | |
$result = $tableRestProxy->queryEntities("meusTwitts", $filter); | |
} catch(ServiceException $e){ | |
$code = $e->;getCode(); | |
$error_message = $e->getMessage(); | |
echo $code.": ".$error_message." | |
"; | |
} |
This file contains 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
$entity = new Entity(); | |
$entity->setPartitionKey("user"); | |
$entity->setRowKey("MayogaX"); | |
$entity->addProperty("Texto", EdmType::STRING, "Queria ir no TDC Porto Alegre :("); | |
try{ | |
$tableRestProxy->;insertEntity("meustwits", $entity); | |
} catch(ServiceException $e){ | |
$code = $e->getCode(); | |
$error_message = $e->getMessage(); |
This file contains 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
try { | |
// Create table. | |
$tableRestProxy->createTable("meusTwitts"); | |
} catch(ServiceException $e){ | |
$code = $e->getCode(); | |
$error_message = $e->getMessage(); | |
echo $code.": ".$error_message." | |
"; | |
} |
This file contains 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
$hostedServiceName = "DeletTwittFurado"; | |
$deploymentName = "v0.666"; | |
$slot = DeploymentSlot::PRODUCTION; | |
$packageUrl = "URL_for_.cspkg_file"; | |
$configuration = file_get_contents('path_to_.cscfg_file'); | |
$label = base64_encode($hostedServiceName); | |
$result = $serviceManagementRestProxy->;createDeployment($hostedServiceName, | |
$deploymentName, | |
$slot, |