public static bool UpdateLibrariandetails(TMSLibrianDetails objLib, TMSAddressDetails objAddress) { ConnectionHelper CHelper = new ConnectionHelper(); DbTransaction _SqlTrans = null; SqlConnection _connection = null;; bool flag = false; try { _connection = CHelper.GetConnection(); _SqlTrans = _connection.BeginTransaction(); objAddress.Update(_SqlTrans); objLib.LDAddressId = objAddress.ADAddressId; objLib.Update(_SqlTrans); flag = true; _SqlTrans.Commit(); } catch (Exception ex) { flag = false; _SqlTrans.Rollback(); } finally { CHelper.CloseConnection(_connection); } return(flag); }
public static void Update(TMSLibrianDetails tMSLibrianDetails, DbTransaction transaction) { tMSLibrianDetails.Update(transaction); }
public static void Update(TMSLibrianDetails tMSLibrianDetails) { tMSLibrianDetails.Update(); }
public static bool UpdateLibrariandetails(TMSLibrianDetails objLib, TMSAddressDetails objAddress) { ConnectionHelper CHelper = new ConnectionHelper(); DbTransaction _SqlTrans = null; SqlConnection _connection = null; ; bool flag = false; try { _connection = CHelper.GetConnection(); _SqlTrans = _connection.BeginTransaction(); objAddress.Update(_SqlTrans); objLib.LDAddressId = objAddress.ADAddressId; objLib.Update(_SqlTrans); flag = true; _SqlTrans.Commit(); } catch (Exception ex) { flag = false; _SqlTrans.Rollback(); } finally { CHelper.CloseConnection(_connection); } return flag; }
public static void Update(TMSLibrianDetails tMSLibrianDetails, DbTransaction transaction) { tMSLibrianDetails.Update(transaction); }
public static void Update(TMSLibrianDetails tMSLibrianDetails) { tMSLibrianDetails.Update(); }