HobbyProject/Source Code/TeamHobby.HobbyProjectGenerator.DataAccess/Contracts/IDataSource.cs
2021-12-11 14:32:40 -08:00

25 lines
630 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TeamHobby.HobbyProjectGenerator.DataAccess
{
public interface IDataSource<T>
{
// Method for reading data, return 0 for sucessful operation
Object ReadData(T model);
// Method for Writing data to a data source
bool WriteData(T model);
//Method for deleteing data from a data source, 0 for successful
bool DeleteData(T model);
// Method for updating data from a data source, 0 for sucessful
bool UpdateData(T model);
}
}