using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace Falcon.ModelSP
{
///
/// 执行存储过程接口
///
public interface IFalconSPRuner
{
///
/// 通过数据库上下文执行无返回值的存储过程
///
/// 参数类型
/// 数据上下文
/// 参数数据
int RunSP(DbContext db,TPrarmType data);
///
/// 通过数据库上下文执行存储过程,并返回查询结果
///
/// 参数类型
/// 返回结果项类型
/// 数据上下文
/// 参数数据
IEnumerable RunSP(DbContext db,TPrarmType data) where TResultType : class, new();
}
}