add UnitWorkBehavior and some files moving add Docker stuff to prepare heroku deployment rename (Up/Down)vote add sample for msbuild tasks
24 lines
499 B
C#
24 lines
499 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using HN.Domain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace HN.Infrastructure.Repositories
|
|
{
|
|
public sealed class LinkRepository : Repository<Link>, ILinkRepository
|
|
{
|
|
public LinkRepository(HNDbContext context) : base(context)
|
|
{
|
|
}
|
|
|
|
public Task AddAsync(Link link)
|
|
{
|
|
return base.AddAsync(link);
|
|
}
|
|
|
|
public Task<Link> GetByIdAsync(Guid id)
|
|
{
|
|
return Entries.SingleOrDefaultAsync(o => o.Id == id);
|
|
}
|
|
}
|
|
} |