You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
|
2 years ago
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace formula_manage
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 查询接口
|
||
|
|
/// </summary>
|
||
|
|
/// <typeparam name="T"></typeparam>
|
||
|
|
public interface IProvider<T> where T : class
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 查询所有记录
|
||
|
|
/// </summary>
|
||
|
|
/// <returns></returns>
|
||
|
|
List<T> Select();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 查询一条记录
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="t"></param>
|
||
|
|
/// <returns></returns>
|
||
|
|
List<T> Selectsql(T 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="t"></param>
|
||
|
|
/// <returns></returns>
|
||
|
|
int Delete(T t);
|
||
|
|
}
|
||
|
|
}
|