/// <summary>执行</summary> /// <param name="sql">SQL语句</param> /// <param name="type">命令类型,默认SQL文本</param> /// <param name="ps">命令参数</param> /// <returns>影响的结果</returns> public static Int32 Execute(String sql, CommandType type = CommandType.Text, params DbParameter[] ps) { WaitForInitData(); Int32 rs = DBO.Execute(sql, type, ps, Meta.TableName); executeCount++; DataChange("修改数据"); return(rs); }
/// <summary>执行</summary> /// <param name="sql">SQL语句</param> /// <returns>影响的结果</returns> public static Int32 Execute(String sql) { WaitForInitData(); Int32 rs = DBO.Execute(sql, Meta.TableName); executeCount++; DataChange("修改数据"); return(rs); }