zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

6 results in tag: repository

Passing Context object between Repository, Generic repository & unit of work

I am working on an asp.net mvc web application & entity framework 6. i want to have these inside my application:-...Generic repository class....Dedicated repository class for each entity type. Where this dedicated repository will be derived from the gener...
asp.net-mvc entity-framework entity-framework-6 repository unit-of-work
asked by john Gu

automapper unflatten excludes value from parent object

I've a situation where entity framework core (2.0) is performing additional work to a parent table when I update a row in a child table. I've pin-pointed the cause to a value not being set in the unflattened object tree produced by AutoMapper (I'm not say...
automapper dto entity-framework-core repository
asked by Craig

Which lifetime-manager do I register my DbContext into Unity container when writing a WPF application?

I am writing a new C# application on the top of ...Prism 6.3... framework using the well-known MVVM design pattern. I am using Unity IoC container to help me manage my dependencies....I am using ...Entity Framework Core... to interact with the database. H...
c# entity-framework-core prism repository wpf
asked by Junior

Storing DbSet in constructor instead of calling DbContext.Set<TU> for every use

In a repository pattern I've been following for a while (...example...), I've always had Add, Delete, etc. methods which use a "new" DbSet (e.g., ...DbContext.Set<T>.Update(entity).... In testing, this seems to, thankfully, always return the same DbSet ob...
dbset entity-framework entity-framework-core repository repository-pattern
asked by Dinerdo

What is better way to update data in EF Core

What is the best way to update data in EF core in asp.net core application? I can do it like this...public class Repository<T> : IRepository<T> where T : BaseEntity { private DbContext context; private DbSet<T> entities; public Repository(DbCo...
.net c# entity-framework-core repository sql-update
asked by user3233682

Entity Framework Core, Unit of Work and Repository Pattern

Having read numerous articles stating that putting a UOW and Repository pattern on top of an EF Core db context is not recommended, I am almost on board and am about to implement Services that gets IDBContext injected, in a new project of mine....I say al...
entity-framework-core repository unit-of-work
asked by d_k

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!