Interviews Flashcards

1
Q

How can you generate two tables with a relationship using the paradigm code first of entityframework?

A

The tables relationed are generated when the entity contains like property other entity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you show or not show controls in a web application in dot net core?

A

You can add a specialized class that valid this specific situation and injected in the service collection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the specific classes to implement the dependency injection using dotnet core

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to implement an custom authorization

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which is the scope of life to services in the service collector of dotnet core?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly