daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Feb 12th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Entity("EmployeeTable")]
  2.     public class Employee
  3.     {
  4.        //Memebers of Employee
  5.     }
  6.    
  7. [Entity("EmployeeType1View")]
  8. public class EmployeeType1:Employee
  9. {
  10. //Memebers of EmployeeType1
  11. }
  12.  
  13. [Entity("EmployeeType2View")]
  14. public class EmployeeType2:Employee
  15. {
  16. //Memebers of EmployeeType2
  17. }
  18.    
  19. var model = new FluentNHibernate.Automapping.AutoPersistenceModel();
  20. // add assembly and the like to model
  21. model.WriteMappingsTo(path);
  22.  
  23. forech(var baseclass in classesWithSubclasses)
  24. {
  25.     var doc = new XmlDocument();
  26.     doc.Load(baseclass.getType().FullName + ".hbm.xml");
  27.     // use xpath to separate the subclassmapping in its own file
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top