2

I'm looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.

I have a standard

public class MyObjectMap : ClassMap<MyObject> {

    public MyObjectMap() {
        Table("MyObjectsTable");

        Id(x => x.Id).GeneratedBy.Identity();
        Map(x => x.This, "That");
        // Ad nauseam

        // how do I use this part?
        SqlUpdate(" some sql here ");

The question is, how do I make use of a StoredProcedurePart in this way? How do I specify only the right parameters?

reallyJim
  • 1,336
  • 2
  • 16
  • 32
  • Did you get anywhere with this - I am investigating FNH for a new project and this feature could be useful - thanks! – RobertMS Apr 16 '12 at 17:14
  • Not with this. I did implement a "SQLCommand" class that hooks into the NH session (primarily for logging purposes), uses dynamics for mapping to real-world objects. Once I fully described it, the response I got was "Oh, so, you wrote Massive in NH?" – reallyJim Apr 16 '12 at 18:13

0 Answers0