接口
/// <summary>
/// 實現接口
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IOperation<T>
{
/// <summary>
/// 增加數據
/// </summary>
/// <param name="t"></param>
/// <returns></returns>
int Insert(T t);
/// <summary>
/// 修改數據
/// </summary>
/// <param name="t"></param>
/// <returns></returns>
int Update(T t);
/// <summary>
/// 刪除數據
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
int Delete(string Id);
}
#region IOperation<User> 成員
public class UserDAL : IOperation<User>
{
public int Insert(User t)
{
}
public int Update(User t)
{
}
public int Delete(string Id)
{
}
}
#endregion