(Object/(DataSet,DataReader) Relational Mapping)ODRM模式更新20070123
2007.1.22
IBatisNet增加DataReader函数,快速返回查询中最后一行数据、
Hashtable table = Mapper.Instance().QueryForDataReader(MapID, ruleHashtable);
Hashtable table = Mapper.Instance().QueryForOracleDataReader(MapID, ruleHashtable);
如果多行函数请使用
DataSet set1 = Mapper.Instance().QueryForDataSet(MapID, ruleHashtable);
DataSet set1 = Mapper.Instance().QueryForOracleDataSet(MapID, ruleHashtable);
修改XMl查询或者配置以后,重新载入缓存,不需要重新启动IIS
Mapper.ReloadXml();
并参考NickLee.ODRM实现DataSet,Hashtable,对象实体数据互换。
2007.1.24
对QueryForDataReader,QueryForOracleDataReader,QueryForDataSet,QueryForOracleDataSet
动态查询资源释放优化。
下载地址:
https://files.cnblogs.com/mail-ricklee/ODRM.part01.rar
https://files.cnblogs.com/mail-ricklee/ODRM.part02.rar
https://files.cnblogs.com/mail-ricklee/ODRM.part03.rar
NIckLee.Framework演示地址
http://nicklee.yuanbo.cn/demo/default.aspx
NickLee.Framework.2.0.1.2.pro中已经包含ODRM模式和设计模式资源
箫心网下载地址(bbs.crfly.com):
http://www.xxfly.cn/SoftCode/NickLee.Framework.2.0.1.3.rar
渊博下载地址(http://www.yuanbo.cn/)
http://nicklee.yuanbo.cn/NickLee.Framework.2.0.1.2.pro.rar
IBatisNet1.5版本修改部分
IBatisNet增加DataReader函数,快速返回查询中最后一行数据、
Hashtable table = Mapper.Instance().QueryForDataReader(MapID, ruleHashtable);
Hashtable table = Mapper.Instance().QueryForOracleDataReader(MapID, ruleHashtable);
如果多行函数请使用
DataSet set1 = Mapper.Instance().QueryForDataSet(MapID, ruleHashtable);
DataSet set1 = Mapper.Instance().QueryForOracleDataSet(MapID, ruleHashtable);
修改XMl查询或者配置以后,重新载入缓存,不需要重新启动IIS
Mapper.ReloadXml();
并参考NickLee.ODRM实现DataSet,Hashtable,对象实体数据互换。
2007.1.24
对QueryForDataReader,QueryForOracleDataReader,QueryForDataSet,QueryForOracleDataSet
动态查询资源释放优化。
下载地址:
https://files.cnblogs.com/mail-ricklee/ODRM.part01.rar
https://files.cnblogs.com/mail-ricklee/ODRM.part02.rar
https://files.cnblogs.com/mail-ricklee/ODRM.part03.rar
NIckLee.Framework演示地址
http://nicklee.yuanbo.cn/demo/default.aspx
NickLee.Framework.2.0.1.2.pro中已经包含ODRM模式和设计模式资源
箫心网下载地址(bbs.crfly.com):
http://www.xxfly.cn/SoftCode/NickLee.Framework.2.0.1.3.rar
渊博下载地址(http://www.yuanbo.cn/)
http://nicklee.yuanbo.cn/NickLee.Framework.2.0.1.2.pro.rar
IBatisNet1.5版本修改部分
/// <summary>
/// Executes a Sql SELECT statement that returns DataSet to populate
/// a DataSet of result objects.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A DataSet of result objects.</returns>
public DataSet QueryForDataSet(string statementName, object parameterObject)
/// <summary>
/// Executes a Sql SELECT statement that returns Hashtable to populate
/// SqlDataReader Use
/// a Hashtable of result objects.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A Hashtable of result objects(Lasted Query Record)</returns>
public Hashtable QueryForDataReader(string statementName, object parameterObject)
/// <summary>
/// Executes a Sql SELECT statement that returns DataSet to populate
/// a DataSet of result objects.s.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A DataSet of result objects.</returns>
public DataSet QueryForOracleDataSet(string statementName, object parameterObject
/// <summary>
/// Executes a Sql SELECT statement that returns Hashtable to populate
/// OracleDataReader Use
/// a Hashtable of result objects.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A Hashtable of result objects.(Lasted Query Record)</returns>
public Hashtable QueryForOracleDataReader(string statementName, object parameterObject)
/// Executes a Sql SELECT statement that returns DataSet to populate
/// a DataSet of result objects.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A DataSet of result objects.</returns>
public DataSet QueryForDataSet(string statementName, object parameterObject)
/// <summary>
/// Executes a Sql SELECT statement that returns Hashtable to populate
/// SqlDataReader Use
/// a Hashtable of result objects.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A Hashtable of result objects(Lasted Query Record)</returns>
public Hashtable QueryForDataReader(string statementName, object parameterObject)
/// <summary>
/// Executes a Sql SELECT statement that returns DataSet to populate
/// a DataSet of result objects.s.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A DataSet of result objects.</returns>
public DataSet QueryForOracleDataSet(string statementName, object parameterObject
/// <summary>
/// Executes a Sql SELECT statement that returns Hashtable to populate
/// OracleDataReader Use
/// a Hashtable of result objects.
/// <p/>
/// Modify By TheFallAngel Team's Nick.Lee
/// <p/>
/// The parameter object is generally used to supply the input
/// data for the WHERE clause parameter(s) of the SELECT statement.
/// </summary>
/// <param name="statementName">The name of the sql statement to execute.</param>
/// <param name="parameterObject">The object used to set the parameters in the SQL.</param>
/// <returns>A Hashtable of result objects.(Lasted Query Record)</returns>
public Hashtable QueryForOracleDataReader(string statementName, object parameterObject)