mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-23 07:17:00 -04:00
18 lines
451 B
C#
18 lines
451 B
C#
using System.Collections.ObjectModel;
|
|
|
|
namespace WowUp.WPF.Repositories.Base
|
|
{
|
|
public class BaseEntityRepository<TEntity> : BaseRepository
|
|
where TEntity : new()
|
|
{
|
|
|
|
protected ObservableCollection<TEntity> _entities;
|
|
|
|
public BaseEntityRepository() : base()
|
|
{
|
|
_database.CreateTable<TEntity>();
|
|
_entities = new ObservableCollection<TEntity>(_database.Table<TEntity>());
|
|
}
|
|
}
|
|
}
|