description | tools | ||||
---|---|---|---|---|---|
Analyze errors and suggest debugging strategies |
|
Analyze error messages, trace through code paths, and suggest systematic debugging approaches. Focus on root cause analysis.
Demand instellen voor linux: | |
# Starter pipeline | |
# Start with a minimal pipeline that you can customize to build and deploy your code. | |
# Add steps that build, run tests, deploy, and more: | |
# https://aka.ms/yaml | |
trigger: | |
- master | |
TypeAdapterConfig.GlobalSettings.Scan(myAssembly); |
public class UserMappingRegistration: IRegistration | |
{ | |
public void Register(TypeAdapterConfig config) | |
{ | |
config. | |
.NewConfig<User, UserDto>() | |
.Map(dest => dest.FullName, | |
src => $"{src.FirstName} {src.LastName}"); | |
config. |
public static class ProductMappingConfig | |
{ | |
public static void Configure() | |
{ | |
TypeAdapterConfig<Product, ProductDto>.NewConfig(); | |
TypeAdapterConfig<ProductDto, Product>.NewConfig(); | |
} | |
} |
var config = new MapperConfiguration(cfg => { | |
cfg.AddMaps(myAssembly); | |
}, loggerFactory); |
public class ProductProfile : Profile | |
{ | |
public ProductProfile() | |
{ | |
CreateMap<Product, ProductDto>(); | |
CreateMap<ProductDto, Product>(); | |
} | |
} |