/// <summary> /// 生成Sql命令对象 /// </summary> /// <param name="identityId"></param> /// <param name="command"></param> /// <returns></returns> public abstract SqlStatement GenerateSql(int identityId, CommandStruct command);
/// <summary> /// /// </summary> /// <param name="command"></param> /// <returns></returns> public object ExecuteScalar(CommandStruct command) { command.Parser(); return(ExecuteScalar(command.CommandType, command.Sql, command.Parameters)); }
/// <summary> /// 执行Sql语句 /// </summary> /// <param name="command"></param> /// <returns></returns> public int ExecuteQuery(CommandStruct command) { command.Parser(); return(ExecuteQuery(command.CommandType, command.Sql, command.Parameters)); }
/// <summary> /// 执行Sql语句 /// </summary> /// <param name="command"></param> /// <returns></returns> public IDataReader ExecuteReader(CommandStruct command) { command.Parser(); return(ExecuteReader(command.CommandType, command.Sql, command.Parameters)); }