Interviews Flashcards
How can you generate two tables with a relationship using the paradigm code first of entityframework?
The tables relationed are generated when the entity contains like property other entity.
How can you show or not show controls in a web application in dot net core?
You can add a specialized class that valid this specific situation and injected in the service collection
What are the specific classes to implement the dependency injection using dotnet core
ServiceCollection: this class contains a list of the declaration of interfaces or concrete class.
ServiceProvider: This class help to implement the services listed in the service collector.
Both classes are in the DependencyInjection package of dotnetcore
How to implement an custom authorization
You can create your own service to validate versus a external service or with tools like for example the classes to use el Single Sign On of Microsoft
Which is the scope of life to services in the service collector of dotnet core?
AddSingleton same instance for the entire application, AddScope same instance in a request
AddTransient new instance every time that the object is requested or injected.