私のmvvmプロジェクトには、追加、更新、削除インターフェイスを含む1つのインターフェイスがあります。したがって、インターフェイスはデータアクセスレイヤーです。そのコードは次のとおりです。
public interface IAccountDataSource
{
bool Add(Account account);
bool Update(Account account);
bool Remove(Account account);
Account GetById(int id);
Account GetByName(string name);
IEnumerable<Account> GetByCategory(AccountCategory accountCategory);
IEnumerable<Account> GetBySearchTerm(string searchTerm);
IEnumerable<Account> GetAll();
event EventHandler<ObjectAddedEventArgs> AccountAdded;
event EventHandler<ObjectUpdatedEventArgs> AccountUpdated;
event EventHandler<ObjectRemovedEventArgs> AccountRemoved;
}
enter code here
データ アクセス レイヤーが ORM を意味するかどうかはわかりません。データ アクセス レイヤーの利点は何ですか?