NHibernate Forge
The official new home for the NHibernate for .NET community

NHibernate.Burrow 1.0.2 GA is released!

NHibernate.Burrow is a light weight middleware developed to support .Net applications using NHibernate (maybe also referred as NH in this article) as ORM framework by providing advanced and smart session/transaction management and other facilitates. Documentation and examples are available at http://NHForge.net Any feedback can be sent to NHibernate user group(http://groups.google.com/group/nhusers). Issues can be submitted to http://http://jira.nhforge.org/ They will be greatly appreciated. Please go to http://sourceforge.net/project/showfiles.php?group_id=216446&package_id=272688 to download


Posted feb 19 2009, 04:10 p.m. by kailuowang
Filed under:

Comments

africazheng wrote re: NHibernate.Burrow 1.0.2 GA is released!
on 06-15-2009 5:19

hi,Burrow is great.

And now I have a question about burrow when I used it in my asp.net project.

I use jquery post a asp.net form to save some info, just like the following:

$(document).ready(function() {

   var options = {

       beforeSubmit: showRequest,

       success: showResponse,

       url: "Handler/AddCustomerHandler.ashx",

       data: {func:"SaveCustomer"}

   };

   $('#aspnetForm').submit(function() {

       $(this).ajaxSubmit(options);        

   });

});

n the ashx file,I need access form data and save them.when I just save the Customer (use customerDao),it's success.But when I save the Customer info and save Customer phone info in the save time( use CustomerDao and CustoemrPhoneDao),the page client can not access any response text.

public void ProcessRequest(HttpContext context)

 {

  .....................................

    if (function == "SaveCustomer")

       {

           Customer customer = SaveCustomer(context);

           context.Response.Write(customer.Serialno.ToString() + " - " + customer.Name);

       }

   .............................

}

 private Customer SaveCustomer(HttpContext context)

 {

   string customerName = context.Request.Form["customer_name"];

       string customerCategory = context.Request.Form["customer_category"];

      ..............................

     //set some properties

    ...................................

CustomerDao customerDao = new CustomerDao();

       customerDao.Save(customer);

       CustomerPhoneDao phoneDao = new CustomerPhoneDao();

       CustomerPhone phone = new CustomerPhone();

       ..........................

      set some properties

      ........................................

       phone.Customer = customer;

       phoneDao.Save(phone);

       return customer;

}

btw:

at unit test ,the same time to save two entity is passed.So I have no idea now ~

kailuowang wrote re: NHibernate.Burrow 1.0.2 GA is released!
on 06-15-2009 11:05

africazheng, you have to make sure that you see error messages.

In your unit test, did you use Burrow? If not please do.  please check burrow faq for how.

Banks wrote re: NHibernate.Burrow 1.0.2 GA is released!
on 01-04-2010 20:26

Documentation and examples are available at http://NHForge.net

Powered by Community Server (Commercial Edition), by Telligent Systems