摘要: Linq操作存储过程,需要在继承DataContext的类中添加存储过程的执行函数例如执行一个不带参数的存储过程,声明如下:[Function(Name = "GetMyInt")]public ISingleResult<MENU_TBL> GetInt(){ IExecuteResult res = this.ExecuteMethodCall(this,((MethodInfo)MethodInfo.GetCurrentMethod())); return ((ISingleResult<MENU_TBL>)(res.ReturnValue)) 阅读全文