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?
精彩评论