开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜