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 System; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace TesteAPIRESTLinux.Controllers | |
| { | |
| [Route("api/[controller]")] | |
| public class ConversorAlturasController : Controller | |
| { | |
| [HttpGet("PesMetros/{alturaPes}")] | |
| public object Get(double alturaPes) |
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
| CREATE DATABASE ExemploPaises; | |
| GO | |
| USE ExemploPaises; | |
| GO | |
| CREATE TABLE dbo.Paises( | |
| Sigla char(3) NOT NULL, | |
| NomePais varchar(50) NOT NULL, | |
| CodigoTelefonico varchar(4) NOT NULL, |
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
| USE ExemploPaises; | |
| GO | |
| SELECT * FROM dbo.Paises; | |
| GO |
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 System; | |
| using System.Data.SqlClient; | |
| namespace TesteNETCoreSQL | |
| { | |
| public class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| Console.WriteLine("Relação de países e códigos telefônicos\n"); |
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 System.IO; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| using Microsoft.Extensions.PlatformAbstractions; | |
| using Swashbuckle.Swagger.Model; | |
| namespace TesteAPIREST |
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
| <h2>Teste envolvendo o uso de View Components no ASP.NET Core 1.1</h2> | |
| <p> | |
| <h2>Bancos NoSQL:</h2> | |
| </p> | |
| @addTagHelper "*, TesteViewComponent" | |
| <vc:Lista sequencia="DocumentDB|MongoDB|RavenDB"></vc:Lista> |
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 System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace TesteViewComponent.ViewComponents | |
| { | |
| public class ListaViewComponent : ViewComponent | |
| { | |
| public async Task<IViewComponentResult> InvokeAsync( | |
| string sequencia) | |
| { |
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
| @model IEnumerable<string> | |
| <style type="text/css"> | |
| li { | |
| font-size: 22px; | |
| } | |
| </style> | |
| <ul> | |
| @foreach (var item in Model) |
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 System; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using System.Data; | |
| using System.Data.SqlClient; | |
| namespace TesteMiddleware | |
| { | |
| public class ChecagemIndisponibilidade |
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.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| namespace TesteMiddleware | |
| { | |
| public class Startup | |
| { |
OlderNewer