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 #112

Open GoogleCodeExporter opened 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
Issue 114 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 113 has been merged into this issue.

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