Correct NHibernate Mapping For Stored Procedure?

后端 未结 1 1177
傲寒
傲寒 2021-01-25 11:59

UPDATE: This is now resolved, see answer below.


I am having a bit of trouble trying to work out the correct way to write an NHibernate Mappi

1条回答
  •  日久生厌
    2021-01-25 12:40

    RESOLVED: I have now resolved this issue. First of all there was the issue of the ID property being set to "name=Id" instead of "name=Month". Secondly, I had to wrap the exec command in a CDATA and also put a comma seperator between the parameters. The full working mapping file is below for future reference to anyone experiencing a similar problem.

    
    
    
      
        
          
        
    
        
        
        
        
        
        
        
    
        
      
    
      
        
          
          
          
          
          
          
          
          
        
        
      
    
    
    

    Cheers!

    0 讨论(0)
提交回复
热议问题