google-code-export / iring-tools

Automatically exported from code.google.com/p/iring-tools
0 stars 0 forks source link

Enable NHibernate to read from one table and write to a different table #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Below are the minimal changes needed to be made to handle this senario:

DataDictionary.cs:
  DataObject:
    tableName ->
      tableInName
      tableOutName

  KeyProperty/DataProperty:
    columnName ->
      columnInName
      columnOutName

EntityGenerator.cs:
  nh-mapping-in.<proj>.<app>.xml
  nh-mapping-out.<proj>.<app>.xml

NHibernateDataLayer.cs:
  OpenSession(AccessMode mode) 
  {
    if mode == READ, load nh-mapping-in.<proj>.<app>.xml
    if mode == WRITE, load nh-mapping-out.<proj>.<app>.xml
  }

Original issue reported on code.google.com by hdle6880@gmail.com on 13 May 2010 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by dariuska...@gmail.com on 25 Apr 2011 at 3:22