public Authtrans BuildFromRow(DataRow row) { var returnRecord = Authtrans.BuildAuthtransFromRow(row); returnRecord = this.BuildExtraFromRow <Authtrans>(returnRecord, row); return(returnRecord); }
public Authtrans Insert(Authtrans record) { DataRow row = this.dataSet.ttblauthtrans.NewttblauthtransRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblauthtrans.AddttblauthtransRow((pdsauthtransDataSet.ttblauthtransRow)row); this.SaveChanges(); return(this.dataSet.ttblauthtrans.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblauthtrans.Rows[0]) : null); }
public Authtrans GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Authtrans authtrans = null; if (row != null) { authtrans = this.BuildFromRow(row); } return(authtrans); }
protected Authtrans Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblauthtrans.AsEnumerable().SingleOrDefault(); Authtrans authtrans = null; if (row != null) { authtrans = this.BuildFromRow(row); } return(authtrans); }
public void Delete(Authtrans record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblauthtrans.NewttblauthtransRow(); Authtrans.BuildMinimalRow(ref row, record); this.dataSet.ttblauthtrans.AddttblauthtransRow((pdsauthtransDataSet.ttblauthtransRow)row); } row.Delete(); this.SaveChanges(); }
public Authtrans Update(Authtrans record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblauthtrans.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblauthtrans.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Authtrans record) { this.adapter.Delete(record); }
public Authtrans Update(Authtrans record) { return(this.adapter.Update(record)); }
public Authtrans Insert(Authtrans record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Authtrans record) { Authtrans.UpdateRowFromAuthtrans(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Authtrans record) { this.repository.Delete(record); }
public Authtrans Update(Authtrans record) { return(this.repository.Update(record)); }
public Authtrans Insert(Authtrans record) { return(this.repository.Insert(record)); }