/// <summary> /// 使用事务的删除方法 /// </summary> /// <param name="connection">实现共享Connection的对象</param> /// <param name="oql">对象查询语句</param> /// <param name="parameters">参数列表</param> /// <returns>影响的记录行数</returns> internal static int Delete(Connection connection, string oql, ParameterList parameters) { return ExcuteDeleteCommand(connection.Command, oql, parameters); }
/// <summary> /// 使用事务的更新方法 /// </summary> /// <param name="connection">实现共享Connection的对象</param> /// <param name="jCUser">实体类对象</param> /// <returns>影响的记录行数</returns> internal static int Update(Connection connection,JCUser jCUser) { return ExcuteUpdateCommand(connection.Command, jCUser); }
/// <summary> /// 更据对象查询语句并启用事务查询单个实体 /// </summary> /// <param name="connection">连接对象</param> /// <param name="oql">对象查询语句</param> /// <param name="parameters">参数列表</param> /// <returns>实体对象</returns> internal static JCUser SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) { return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth); }
/// <summary> /// 使用事务并按主键字段查询特定实体 /// </summary> /// <param name="connection">连接对象</param> /// <param name="userID">主键值</param> /// <returns>实体类对象</returns> internal static JCUser SelectSingle(Connection connection,string userID, RecursiveType recursiveType, int recursiveDepth) { return SelectSingle(connection.Command, userID, recursiveType, recursiveDepth); }
/// <summary> /// 使用事务的插入方法 /// </summary> /// <param name="connection">实现共享Connection的对象</param> /// <param name="jCUser">实体类对象</param> /// <returns>标识列值或影响的记录行数</returns> internal static Guid Insert(Connection connection,JCUser jCUser) { return Insert(connection.Command, jCUser); }