This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using RecordKeeper.Data.Interfaces; | |
using RecordKeeper.Portable.Models; | |
using System; | |
using System.Collections.Generic; | |
namespace RecordKeeper.Data.Repositories | |
{ | |
public class FormatRepository : RepositoryBase<AlbumFormat>, IFormatRepository | |
{ | |
List<AlbumFormat> _formatList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using RecordKeeper.Portable.Models; | |
using System.Collections.Generic; | |
namespace RecordKeeper.Data.Interfaces | |
{ | |
public interface IRepository<TEntity> where TEntity : EntityBase | |
{ | |
List<TEntity> GetAll(); | |
TEntity Get(string id); | |
void Update(TEntity entity); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using RecordKeeper.Portable.Models; | |
namespace RecordKeeper.Data.Interfaces | |
{ | |
public interface IFormatRepository : IRepository<AlbumFormat> | |
{ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using RecordKeeper.Portable.Models; | |
using System.IO; | |
using System.Security.Principal; | |
using System.Threading; | |
namespace RecordKeeper.Data.Repositories | |
{ | |
public abstract class RepositoryBase<TEntity> where TEntity : EntityBase | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using System.IO; | |
namespace RecordKeeper.Portable.Models | |
{ | |
public abstract class EntityBase | |
{ | |
public EntityBase() { } | |
#region Properties |
NewerOlder