public ShipMethodData(ShipMethodData data) { Name = data.Name; ShipBase = data.ShipBase; ShipRate = data.ShipRate; rowguid = data.rowguid; ModifiedDate = data.ModifiedDate; Uid = data.Uid; }
protected override void LazySet() { base.LazySet(); if (PersistenceState == PersistenceState.NewAndChanged || PersistenceState == PersistenceState.LoadedAndChanged) { if ((object)InnerData == (object)OriginalData) { OriginalData = new ShipMethodData(InnerData); } } }
public DataSet GetShipMethodsDataSet(string where, string orderBy) { ShipMethodData data = new ShipMethodData(); DataSet ds = new DataSet(); try { ds = data.GetAllShipMethodsDynamicDataSet(where, orderBy); } catch (Exception ex) { log.Write(ex.Message, "GetShipMethodsDataSet"); throw (ex); } return(ds); }
public bool RemoveShipMethod(ShipMethod shipmethod) { ShipMethodData data = new ShipMethodData(); bool ret = false; try { ret = data.DeleteShipMethod(shipmethod); } catch (Exception ex) { log.Write(ex.Message, "RemoveShipMethod"); throw (ex); } finally { data = null; } return(ret); }
public int AddShipMethod(ShipMethod shipmethod) { ShipMethodData data = new ShipMethodData(); int id = 0; try { id = data.AddShipMethod(shipmethod); } catch (Exception ex) { log.Write(ex.Message, "AddShipMethod"); throw (ex); } finally { data = null; } return(id); }
public ShipMethodCollection GetAllShipMethodsCollection() { ShipMethodData data = new ShipMethodData(); ShipMethodCollection col = new ShipMethodCollection(); try { col = data.GetAllShipMethodsCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllShipMethodsCollection"); throw (ex); } finally { data = null; } return(col); }
public DataSet GetAllShipMethodsDataSet() { ShipMethodData data = new ShipMethodData(); DataSet ds = new DataSet(); try { ds = data.GetAllShipMethodsDataSet(); } catch (Exception ex) { log.Write(ex.Message, "GetAllShipMethodsDataSet"); throw (ex); } finally { data = null; } return(ds); }
public ShipMethod GetShipMethods(int shipMethodID) { ShipMethodData data = new ShipMethodData(); ShipMethod sm = new ShipMethod(); try { sm = data.GetShipMethod(shipMethodID); } catch (Exception ex) { log.Write(ex.Message, "GetShipMethods"); throw (ex); } finally { data = null; } return(sm); }