View Program.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ArtigoLinq | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
View Pessoa.cs
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
using System.Collections.Generic; | |
namespace ArtigoLinq | |
{ | |
public class Pessoa | |
{ | |
public Pessoa(string nome, string sobrenome, string documento, string endereco, string cep, string numero, string cidadeEstado) | |
{ | |
Nome = nome; | |
Sobrenome = sobrenome; |
View Program.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ArtigoLinq | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
View Pessoa.cs
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 Pessoa | |
{ | |
public Pessoa(string nomeCompleto, string documento, List<string> emails) | |
{ | |
NomeCompleto = nomeCompleto; | |
Documento = documento; | |
Emails = emails; | |
} | |
public string NomeCompleto { get; set; } |
View Startup.cs
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services | |
.AddApplication() | |
.AddInfrastructure(); | |
services.AddControllers(); | |
services.AddSwaggerGen(c => | |
{ |
View Startup.cs
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddScoped<IEmployeeRepository, EmployeeRepository>(); | |
services.AddScoped<ICustomerRepository, CustomerRepository>(); | |
services.AddScoped<IProductRepository, ProductRepository>(); | |
services.AddScoped<IOrderRepository, OrderRepository>(); | |
services.AddScoped<IOrderInvoiceRepository, OrderInvoiceRepository>(); | |
services.AddScoped<IOrderDeliveryRepository, OrderDeliveryRepository>(); | |
services.AddScoped<ILoyaltyProgramRepository, LoyaltyProgramRepository>(); | |
services.AddScoped<IProductCategoryRepository, ProductCategoryRepository>(); |
View ServiceCollectionExtensions.cs
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 static class ServiceCollectionExtensions | |
{ | |
public static IServiceCollection AddInfrastructure(this IServiceCollection services) | |
{ | |
services.AddScoped<IEmployeeRepository, EmployeeRepository>(); | |
services.AddScoped<ICustomerRepository, CustomerRepository>(); | |
services.AddScoped<IProductRepository, ProductRepository>(); | |
services.AddScoped<IOrderRepository, OrderRepository>(); | |
services.AddScoped<IOrderInvoiceRepository, OrderInvoiceRepository>(); | |
services.AddScoped<IOrderDeliveryRepository, OrderDeliveryRepository>(); |
View Program.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ArtigoLinqParteUm | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
View Student.cs
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
namespace ArtigoLinqParteUm | |
{ | |
public class Student | |
{ | |
public Student(string name, int grade) | |
{ | |
Name = name; | |
Grade = grade; | |
} |
View Program.cs
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
using System; | |
namespace DataStructuresCsharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var gerenciadorFilaAtendimento = new GerenciadorFilaAtendimento(); |
NewerOlder