public SettingDataFormat() { InitializeComponent(); _sdf = _sdfManager.GetFirst(); if (_sdf == null) { _sdf = new Model.SetDataFormat(); _sdf.SetDataFormatId = Guid.NewGuid().ToString(); } }
public void Insert(Model.SetDataFormat setDataFormat) { try { BL.V.BeginTransaction(); this.Delete(setDataFormat.SetDataFormatId); setDataFormat.InsertTime = DateTime.Now; accessor.Insert(setDataFormat); BL.V.CommitTransaction(); } catch { BL.V.RollbackTransaction(); throw; } }
public Model.SetDataFormat GetPrev(Model.SetDataFormat e) { return(sqlmapper.QueryForObject <Model.SetDataFormat>("SetDataFormat.get_prev", e)); }
public Model.SetDataFormat GetNext(Model.SetDataFormat e) { return(sqlmapper.QueryForObject <Model.SetDataFormat>("SetDataFormat.get_next", e)); }
public bool HasRowsAfter(Model.SetDataFormat e) { return(sqlmapper.QueryForObject <bool>("SetDataFormat.has_rows_after", e)); }
public bool HasRowsBefore(Model.SetDataFormat e) { return(sqlmapper.QueryForObject <bool>("SetDataFormat.has_rows_before", e)); }
public void Update(Model.SetDataFormat e) { this.Update <Model.SetDataFormat>(e); }
public void Insert(Model.SetDataFormat e) { this.Insert <Model.SetDataFormat>(e); }
public Model.SetDataFormat GetNext(Model.SetDataFormat e) { return(accessor.GetNext(e)); }
public Model.SetDataFormat GetPrev(Model.SetDataFormat e) { return(accessor.GetPrev(e)); }
public bool HasRowsAfter(Model.SetDataFormat e) { return(accessor.HasRowsAfter(e)); }
public bool HasRowsBefore(Model.SetDataFormat e) { return(accessor.HasRowsBefore(e)); }
public void Update(Model.SetDataFormat setDataFormat) { accessor.Update(setDataFormat); }