Example #1
0
 /// <summary>
 /// Initializes a new instance of ObjectDalcMapper
 /// </summary>
 /// <param name="dbMgr">DataRowManager</param>
 /// <param name="tableName">data table name</param>
 /// <param name="colNameToProperty">column name -> object property map</param>
 public ObjectDalcMapper(DataRowDalcMapper dbMgr, string tableName, IDictionary <string, string> colNameToProperty)
 {
     TableName    = tableName;
     ObjectMapper = new PropertyDataRowMapper(colNameToProperty);
     DbManager    = dbMgr;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of ObjectDalcMapper
 /// </summary>
 /// <param name="dbMgr">DataRowManager</param>
 /// <param name="tableName">data table name</param>
 public ObjectDalcMapper(DataRowDalcMapper dbMgr, string tableName)
 {
     TableName    = tableName;
     ObjectMapper = new PropertyDataRowMapper(null);
     DbManager    = dbMgr;
 }