开发者

Are there examples of SPROC mappings and usage with Fluent NHibernate?

开发者 https://www.devze.com 2023-04-04 01:17 出处:网络
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'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 M开发者_如何学CyObjectMap() {
        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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号