首页 > 代码库 > 调用sql

调用sql

 

表:FmCashStatistics

EFContext db = new EFContext();
string strsql = "SELECT org_info_id,customer_info_id,item_category,item_no,item_report_name,direction,amt_cr,amt_dr,voucher_date,voucher_no,voucher_desc from fm_cash_statistics";
var list = db.Database.SqlQuery<FmCashStatistics>(strsql).ToList();

调用sql