This commit is contained in:
sc committed 2022-01-17 21:59:42 +08:00
commit 1d09ebe4f4
2 files changed
+43

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models
{
/// <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>
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);
}
}
+1
View File
@@ -152,6 +152,7 @@
<Compile Include="EventList.cs">
<DependentUpon>SQL_BD.tt</DependentUpon>
</Compile>
<Compile Include="IProvider.cs" />
<Compile Include="JOBTKT.cs">
<DependentUpon>SQL_Ti.tt</DependentUpon>
</Compile>