天津投入产出系统后端
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.
 
 
 
 
 
 

27 lines
812 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.Entity.Sys;
using QMFrameWork.Data;
namespace QMAPP.DAL.Sys
{
public class FunctionRecorderDAL : BaseDAL
{
public void Insert(FunctionRecorder entity)
{
string sql = string.Format("select count(1) from T_QM_FUNTIONDESCRIPTION where CONTROLLER='{0}' and [ACTION]='{1}' ", entity.CONTROLLER, entity.ACTION);
using (IDataSession session = AppDataFactory.CreateMainSession())
{
int count = Convert.ToInt32(session.ExecuteSqlScalar(sql, new List<DataParameter>().ToArray()));
if (count > 0)
{
session.Insert<FunctionRecorder>(entity);
}
}
}
}
}