mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-03 10:07:59 +08:00
16 lines
411 B
C#
16 lines
411 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace xamarinFormApp.Services
|
|
{
|
|
public interface IDataStore<T>
|
|
{
|
|
Task<bool> AddItemAsync(T item);
|
|
Task<bool> UpdateItemAsync(T item);
|
|
Task<bool> DeleteItemAsync(string id);
|
|
Task<T> GetItemAsync(string id);
|
|
Task<IEnumerable<T>> GetItemsAsync(bool forceRefresh = false);
|
|
}
|
|
}
|