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.Collections.Generic; | |
using System.Linq; | |
namespace ArtigoLinq | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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.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; |
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.Collections.Generic; | |
using System.Linq; | |
namespace ArtigoLinq | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
public class Pessoa | |
{ | |
public Pessoa(string nomeCompleto, string documento, List<string> emails) | |
{ | |
NomeCompleto = nomeCompleto; | |
Documento = documento; | |
Emails = emails; | |
} | |
public string NomeCompleto { get; set; } |
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
public void ConfigureServices(IServiceCollection services) | |
{ | |
services | |
.AddApplication() | |
.AddInfrastructure(); | |
services.AddControllers(); | |
services.AddSwaggerGen(c => | |
{ |
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
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>(); |
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
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>(); |
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.Collections.Generic; | |
using System.Linq; | |
namespace ArtigoLinqParteUm | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
namespace ArtigoLinqParteUm | |
{ | |
public class Student | |
{ | |
public Student(string name, int grade) | |
{ | |
Name = name; | |
Grade = grade; | |
} |
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; | |
namespace DataStructuresCsharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var gerenciadorFilaAtendimento = new GerenciadorFilaAtendimento(); |
NewerOlder