Merge branch 'main' of http://git.dd:3000/AppStd/DbFirst
This commit is contained in:
@@ -12,6 +12,7 @@ public partial class ApplicationDbContext : DbContext
|
||||
|
||||
public virtual DbSet<VwmyCatalog> VwmyCatalogs { get; set; }
|
||||
|
||||
// TODO: Configure column names on appsettings via IConfiguration
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<VwmyCatalog>(entity =>
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Data;
|
||||
|
||||
namespace DbFirst.Infrastructure.Repositories;
|
||||
|
||||
// TODO: instead of creating implementation of repository per entity, consider using generic repository pattern (eg. Repository<T>) to reduce code duplication.
|
||||
public class CatalogRepository : ICatalogRepository
|
||||
{
|
||||
private readonly ApplicationDbContext _db;
|
||||
|
||||
Reference in New Issue
Block a user