WEB开发网
开发学院数据库MSSQL Server ORM: 开发自己的Data Access Application Block -... 阅读

ORM: 开发自己的Data Access Application Block - Part I

 2008-12-06 10:15:45 来源:WEB开发网   
核心提示: IDbParameterNameMappingusing System;using System.Collections.Generic;using System.Text;using System.Data;namespace Artech.ApplicationBlock.DataMa

IDbParameterNameMapping

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Artech.ApplicationBlock.DataMapping
{
  /**//// <summary>
  /// IDbParameterNameMapping define the defult mapping between the source column name and the parameter name of the corresponding stored procedure.
  /// </summary>
  public interface IDbParameterNameMapping
  {
    /**//// <summary>
    /// Get the source column name based on the parameter name of the related stored procedure.
    /// </summary>
    /// <param name="patameterName">The parameter name of the corresponding stored procedure.</param>
    /// <returns>The source column name corresponding to the parameter name.</returns>
    string GetSourceCoulmnName(string patameterName);
    /**//// <summary>
    /// Get the source parameter name based on the source column name.
    /// </summary>
    /// <param name="columnName">The source column name corresponding to the parameter name.</param>
    /// <param name="rowVersion">The data row version of the source solumn conressponding to the parameter.</param>
    /// <returns>The parameter name of the corresponding stored procedure.</returns>
    string GetParameterName(string columnName, DataRowVersion rowVersion);
  }
}

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:ORM 开发 自己

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接