public Sleh BuildFromRow(DataRow row) { var returnRecord = Sleh.BuildSlehFromRow(row); returnRecord = this.BuildExtraFromRow <Sleh>(returnRecord, row); return(returnRecord); }
public Sleh Insert(Sleh record) { DataRow row = this.dataSet.ttblsleh.NewttblslehRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsleh.AddttblslehRow((pdsslehDataSet.ttblslehRow)row); this.SaveChanges(); return(this.dataSet.ttblsleh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsleh.Rows[0]) : null); }
public Sleh GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sleh sleh = null; if (row != null) { sleh = this.BuildFromRow(row); } return(sleh); }
protected Sleh Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsleh.AsEnumerable().SingleOrDefault(); Sleh sleh = null; if (row != null) { sleh = this.BuildFromRow(row); } return(sleh); }
public void Delete(Sleh record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsleh.NewttblslehRow(); Sleh.BuildMinimalRow(ref row, record); this.dataSet.ttblsleh.AddttblslehRow((pdsslehDataSet.ttblslehRow)row); } row.Delete(); this.SaveChanges(); }
public Sleh Update(Sleh 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.ttblsleh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsleh.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Sleh record) { this.repository.Delete(record); }
public Sleh Update(Sleh record) { return(this.repository.Update(record)); }
public Sleh Insert(Sleh record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Sleh record) { Sleh.UpdateRowFromSleh(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sleh record) { this.adapter.Delete(record); }
public Sleh Update(Sleh record) { return(this.adapter.Update(record)); }
public Sleh Insert(Sleh record) { return(this.adapter.Insert(record)); }