public int stored(saveOrderL obj) { try { var result = _orderRepository.getMySession() .CreateSQLQuery ("CALL InsertOrderList(:pcostomerID, :pitemID, :pQuantity, :porderDate, :pstorgeID)") .AddEntity(typeof(saveOrderL)). SetInt32("pcostomerID", obj.costId). SetInt32("pitemID", obj.itemId). SetInt32("pQuantity", obj.quntity). SetDateTime("porderDate", obj.orderdate). SetInt32("pstorgeID", obj.storgeId) // .List<saveOrderL>(); .ExecuteUpdate(); System.Diagnostics.Debug.WriteLine("resulit Count its : " + result.ToString()); return(result); } catch (Exception e) { System.Diagnostics.Debug.WriteLine("error message : " + e.Message); return(0); } }
public void Update(saveOrderL item) { throw new NotImplementedException(); }