Interview Q&A

Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.

4616 total questions 4516 technical 100 career & HR 4346 from PDF library

Showing 76–100 of 153

Career & HR topics

By tech stack

Junior PDF
What is the N+1 query problem? How can lazy loading lead to it?

The N+1 problem occurs when: 1 query loads N parent entities N additional queries load related entities (1 per parent) Example (lazy loading): foreach (var blog in context.Blogs) { Console.WriteLine(blog.Owner.Name); //…

EF Core Read answer
Junior PDF
What is the N+1 query problem?

How can lazy loading lead to it? The N+1 problem occurs when: 1 query loads N parent entities N additional queries load related entities (1 per parent) Example (lazy loading): foreach (var blog in context.Blogs) Console.…

EF Core Read answer
Mid PDF
What performance implications are there for eager vs lazy loading?

Loading Type Pros Cons Eager Fewer queries, good for large data sets Loads everything even if not used Lazy Loads only when needed Risk of N+1 queries, more round-trips Explicit Fine-grained control More code complexity…

EF Core Read answer
Mid PDF
Can you disable lazy loading? How?

Answer: Yes. You can disable lazy loading globally: options.UseLazyLoadingProxies(false); Or don't install the proxy package at all. You can also disable it for specific navigation properties by not making them virtual.…

EF Core Read answer
Mid PDF
Can you disable lazy loading?

Answer: How? Yes. You can disable lazy loading globally: options.UseLazyLoadingProxies(false); Or don't install the proxy package at all. You can also disable it for specific navigation properties by not making them virt…

EF Core Read answer
Junior PDF
What is the default loading behavior in EF Core?

By default, EF Core uses no automatic loading — it doesn’t lazy-load or eager-load relationships unless you: Use .Include() for eager loading Enable lazy loading proxies Use .Load() for explicit loading This default avoi…

EF Core Read answer
Mid PDF
How does LINQ translate to SQL? What limitations are there?

EF Core translates LINQ queries into SQL using expression trees. Only supported LINQ operators and expressions can be translated. Limitations: Certain C# methods or complex expressions cannot be translated and cause runt…

EF Core Read answer
Mid PDF
How does LINQ translate to SQL?

What limitations are there? EF Core translates LINQ queries into SQL using expression trees. Only supported LINQ operators and expressions can be translated. Limitations: Certain C# methods or complex expressions cannot…

EF Core Read answer
Mid PDF
Difference between IQueryable<T> and IEnumerable<T> in EF Core.?

IQueryable&lt;T&gt;: Represents a query against the data source. Query is translated to SQL and executed on the database. Supports deferred execution. IEnumerable&lt;T&gt;: Represents an in-memory collection. LINQ operat…

EF Core Read answer
Mid PDF
How to write joins (inner, left) in LINQ with EF Core?

Inner join example: var query = from c in context.Customers join o in context.Orders on c.Id equals o.CustomerId select new { c.Name, o.OrderDate }; Left join (using DefaultIfEmpty()): var query = from c in context.Custo…

EF Core Read answer
Mid PDF
How to do grouping, aggregation (Sum, Count, Max, Min) via LINQ?

var groupedData = context.Orders .GroupBy(o =&gt; o.CustomerId) .Select(g =&gt; new { CustomerId = g.Key, TotalOrders = g.Count(), TotalAmount = g.Sum(o =&gt; o.Amount), MaxAmount = g.Max(o =&gt; o.Amount), MinAmount = g…

EF Core Read answer
Mid PDF
How to do filtering (Where), ordering (OrderBy, ThenBy, OrderByDescending)?

Answer: Filtering: var filtered = context.Products.Where(p =&amp;gt; p.Price &amp;gt; 100); Ordering: var ordered = context.Products .OrderBy(p =&amp;gt; p.Category) .ThenByDescending(p =&amp;gt; p.Price); What interview…

EF Core Read answer
Junior PDF
What is projection (Select) and why is it useful?

Answer: Projection transforms entities into custom shapes, e.g., DTOs. var projected = context.Products .Select(p =&amp;gt; new { p.Name, p.Price }); Useful for: Reducing data load. Returning only needed fields. Mapping…

EF Core Read answer
Mid PDF
How to use First, FirstOrDefault, Single, SingleOrDefault etc.?

First(): Returns the first element, throws if none found. FirstOrDefault(): Returns first element or default (null) if none. Single(): Returns the single element, throws if zero or more than one. SingleOrDefault(): Retur…

EF Core Read answer
Mid PDF
What about pagination? (Skip, Take)

Answer: Use .Skip() and .Take() for pagination: var page2 = context.Products .OrderBy(p =&amp;gt; p.Id) .Skip(10) // Skip first 10 .Take(10) // Take next 10 .ToList(); What interviewers expect A clear definition tied to…

EF Core Read answer
Mid PDF
What about pagination?

Answer: (Skip, Take) Use .Skip() and .Take() for pagination: var page2 = context.Products .OrderBy(p =&amp;gt; p.Id) .Skip(10) // Skip first 10 .Take(10) // Take next 10 .ToList(); What interviewers expect A clear defini…

EF Core Read answer
Mid PDF
How to do raw SQL queries in EF Core? (FromSqlRaw, etc.)

Answer: Use FromSqlRaw() or FromSqlInterpolated(): var products = context.Products .FromSqlRaw("SELECT * FROM Products WHERE Price &amp;gt; {0}", 100) .ToList(); What interviewers expect A clear definition tied to EF Cor…

EF Core Read answer
Mid PDF
How to do raw SQL queries in EF Core?

Answer: (FromSqlRaw, etc.) Use FromSqlRaw() or FromSqlInterpolated(): var products = context.Products .FromSqlRaw("SELECT * FROM Products WHERE Price &amp;gt; {0}", 100) .ToList(); What interviewers expect A clear defini…

EF Core Read answer
Mid PDF
How to execute stored procedures (if possible)?

Answer: Stored procedures can be called via raw SQL or FromSqlRaw: var orders = context.Orders .FromSqlRaw("EXEC GetOrdersByCustomer @CustomerId = {0}", customerId) .ToList(); For non-query SPs, use Database.ExecuteSqlRa…

EF Core Read answer
Mid PDF
How to use compiled queries for performance?

Precompile frequently used queries to improve performance: private static readonly Func&lt;MyDbContext, int, Product&gt; _getProductById = EF.CompileQuery((MyDbContext ctx, int id) =&gt; ctx.Products.First(p =&gt; p.Id =…

EF Core Read answer
Mid PDF
How to log or view the SQL that EF Core generates?

Answer: Enable logging in DbContext options: optionsBuilder .UseSqlServer(connectionString) .LogTo(Console.WriteLine, LogLevel.Information); Or configure logging in ASP.NET Core logging pipeline. Repository Pattern &amp;…

EF Core Read answer
Junior PDF
What is the Repository Pattern? Why use it with EF Core (pros and cons)? ● Repository Pattern abstracts data access logic, exposing CRUD methods to the

pplication. Pros: Decouples data access logic from business logic. Easier to mock/test. Encapsulates queries in a single place. Cons: EF Core’s DbContext already acts like a repository and unit of work. Can add unnecessa…

EF Core Read answer
Junior PDF
What is the Repository Pattern?

Why use it with EF Core (pros and cons)? Repository Pattern abstracts data access logic, exposing CRUD methods to the application. Pros: Decouples data access logic from business logic. Easier to mock/test. Encapsulates…

EF Core Read answer
Junior PDF
What is the Unit of Work pattern? How does DbContext relate to Unit of Work?

Answer: Unit of Work maintains a list of operations to be committed as a single transaction. EF Core’s DbContext implements Unit of Work, tracking changes and coordinating commits (SaveChanges()). What interviewers expec…

EF Core Read answer
Mid PDF
Should you use a generic repository? What are the trade-offs?

Generic repository provides CRUD for all entity types. Advantages: Reusable and reduces boilerplate. Simple for basic CRUD. Disadvantages: Can become too generic, losing flexibility for complex queries. May leak EF Core…

EF Core Read answer

Entity Framework Core Entity Framework Core Tutorial · EF Core

The N+1 problem occurs when:

  • 1 query loads N parent entities
  • N additional queries load related entities (1 per parent)

Example (lazy loading):

foreach (var blog in context.Blogs)
{

Console.WriteLine(blog.Owner.Name); // triggers a query for each

blog

}

This causes N+1 queries, which can hurt performance significantly.

✅ Solution: Use eager loading with .Include() to fetch everything in one query.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

How can lazy loading lead to it?

The N+1 problem occurs when:

  • 1 query loads N parent entities
  • N additional queries load related entities (1 per parent)

Example (lazy loading):

foreach (var blog in context.Blogs)

Console.WriteLine(blog.Owner.Name); // triggers a query for each

blog

This causes N+1 queries, which can hurt performance significantly.

✅ Solution: Use eager loading with .Include() to fetch everything in one query.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Loading

Type

Pros Cons

Eager Fewer queries, good for large data

sets

Loads everything even if not used

Lazy Loads only when needed Risk of N+1 queries, more

round-trips

Explicit Fine-grained control More code complexity

✅ Eager is best for performance when you know you'll need related data.

❌ Lazy can hurt performance unless used carefully (e.g., in UI apps).

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Yes. You can disable lazy loading globally: options.UseLazyLoadingProxies(false); Or don't install the proxy package at all. You can also disable it for specific navigation properties by not making them virtual.

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: How? Yes. You can disable lazy loading globally: options.UseLazyLoadingProxies(false); Or don't install the proxy package at all. You can also disable it for specific navigation properties by not making them virtual.

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

By default, EF Core uses no automatic loading — it doesn’t lazy-load or eager-load

relationships unless you:

  • Use .Include() for eager loading
  • Enable lazy loading proxies
  • Use .Load() for explicit loading

This default avoids unintended queries and promotes performance control.

EF Core LINQ Queries & Querying

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

  • EF Core translates LINQ queries into SQL using expression trees.
  • Only supported LINQ operators and expressions can be translated.
  • Limitations:
  • Certain C# methods or complex expressions cannot be translated and

cause runtime exceptions.

  • Client-side evaluation may occur, which can hurt performance.
  • Use .AsEnumerable() to switch to client-side processing intentionally.
Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

What limitations are there?

  • EF Core translates LINQ queries into SQL using expression trees.
  • Only supported LINQ operators and expressions can be translated.
  • Limitations:
  • Certain C# methods or complex expressions cannot be translated and

cause runtime exceptions.

  • Client-side evaluation may occur, which can hurt performance.
  • Use .AsEnumerable() to switch to client-side processing intentionally.
Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

  • IQueryable<T>:
  • Represents a query against the data source.
  • Query is translated to SQL and executed on the database.
  • Supports deferred execution.
  • IEnumerable<T>:
  • Represents an in-memory collection.
  • LINQ operators execute in memory.
  • Usually results after the query has executed and data is loaded.
Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

  • Inner join example:
var query = from c in context.Customers

join o in context.Orders on c.Id equals o.CustomerId

select new { c.Name, o.OrderDate };

  • Left join (using DefaultIfEmpty()):
var query = from c in context.Customers

join o in context.Orders on c.Id equals o.CustomerId

into orders

from o in orders.DefaultIfEmpty()

select new { c.Name, OrderDate = o != null ? o.OrderDate

: (DateTime?)null };

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

var groupedData = context.Orders

.GroupBy(o => o.CustomerId)

.Select(g => new

{

CustomerId = g.Key,

TotalOrders = g.Count(),

TotalAmount = g.Sum(o => o.Amount),

MaxAmount = g.Max(o => o.Amount),

MinAmount = g.Min(o => o.Amount)

});

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Filtering: var filtered = context.Products.Where(p =&gt; p.Price &gt; 100); Ordering: var ordered = context.Products .OrderBy(p =&gt; p.Category) .ThenByDescending(p =&gt; p.Price);

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Projection transforms entities into custom shapes, e.g., DTOs. var projected = context.Products .Select(p =&gt; new { p.Name, p.Price }); Useful for: Reducing data load. Returning only needed fields. Mapping to custom types.

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

  • First(): Returns the first element, throws if none found.
  • FirstOrDefault(): Returns first element or default (null) if none.
  • Single(): Returns the single element, throws if zero or more than one.
  • SingleOrDefault(): Returns the single element or default if none; throws if more

than one.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Use .Skip() and .Take() for pagination: var page2 = context.Products .OrderBy(p =&gt; p.Id) .Skip(10) // Skip first 10 .Take(10) // Take next 10 .ToList();

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: (Skip, Take) Use .Skip() and .Take() for pagination: var page2 = context.Products .OrderBy(p =&gt; p.Id) .Skip(10) // Skip first 10 .Take(10) // Take next 10 .ToList();

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Use FromSqlRaw() or FromSqlInterpolated(): var products = context.Products .FromSqlRaw("SELECT * FROM Products WHERE Price &gt; {0}", 100) .ToList();

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: (FromSqlRaw, etc.) Use FromSqlRaw() or FromSqlInterpolated(): var products = context.Products .FromSqlRaw("SELECT * FROM Products WHERE Price &gt; {0}", 100) .ToList();

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Stored procedures can be called via raw SQL or FromSqlRaw: var orders = context.Orders .FromSqlRaw("EXEC GetOrdersByCustomer @CustomerId = {0}", customerId) .ToList(); For non-query SPs, use Database.ExecuteSqlRaw().

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

  • Precompile frequently used queries to improve performance:
private static readonly Func<MyDbContext, int, Product>

_getProductById =

EF.CompileQuery((MyDbContext ctx, int id) =>

ctx.Products.First(p => p.Id == id));

// Usage:

var product = _getProductById(context, 5);
Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Enable logging in DbContext options: optionsBuilder .UseSqlServer(connectionString) .LogTo(Console.WriteLine, LogLevel.Information); Or configure logging in ASP.NET Core logging pipeline. Repository Pattern &amp; Unit of Work

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

pplication.

  • Pros:
  • Decouples data access logic from business logic.
  • Easier to mock/test.
  • Encapsulates queries in a single place.
  • Cons:
  • EF Core’s DbContext already acts like a repository and unit of work.
  • Can add unnecessary abstraction and boilerplate.
  • May limit EF Core’s powerful querying features.
Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Why use it with EF Core (pros and

cons)?

  • Repository Pattern abstracts data access logic, exposing CRUD methods to the

application.

  • Pros:
  • Decouples data access logic from business logic.
  • Easier to mock/test.
  • Encapsulates queries in a single place.
  • Cons:
  • EF Core’s DbContext already acts like a repository and unit of work.
  • Can add unnecessary abstraction and boilerplate.
  • May limit EF Core’s powerful querying features.
Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

Answer: Unit of Work maintains a list of operations to be committed as a single transaction. EF Core’s DbContext implements Unit of Work, tracking changes and coordinating commits (SaveChanges()).

What interviewers expect

  • A clear definition tied to EF Core in Entity Framework Core projects
  • Trade-offs (performance, maintainability, security, cost)
  • When you would and would not use it in production

Real-world example

In a production Entity Framework Core application, teams apply this when handling user-facing features or integration boundaries. For example, you might use it during a sprint where reliability and observability matter—logging metrics, validating edge cases, and documenting the decision in an ADR so future developers understand why the approach was chosen.

How to explain in the interview

  1. Define the concept in one or two sentences.
  2. Context — where it fits in Entity Framework Core architecture.
  3. Example — a specific project, bug, or performance win.
  4. Trade-off — what you gain vs what you sacrifice.

Tip: Practice aloud on Toolliyo mock interview or the Interview Q&A section before your real interview.

Permalink & share

Entity Framework Core Entity Framework Core Tutorial · EF Core

  • Generic repository provides CRUD for all entity types.
  • Advantages:
  • Reusable and reduces boilerplate.
  • Simple for basic CRUD.
  • Disadvantages:
  • Can become too generic, losing flexibility for complex queries.
  • May leak EF Core specifics or cause over-abstraction.
  • Sometimes custom repositories per aggregate are better.
Permalink & share
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details