public FileRetent BuildFromRow(DataRow row) { var returnRecord = FileRetent.BuildFileRetentFromRow(row); returnRecord = this.BuildExtraFromRow <FileRetent>(returnRecord, row); return(returnRecord); }
public FileRetent Insert(FileRetent record) { DataRow row = this.dataSet.ttblfile_retent.Newttblfile_retentRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblfile_retent.Addttblfile_retentRow((pdsfile_retentDataSet.ttblfile_retentRow)row); this.SaveChanges(); return(this.dataSet.ttblfile_retent.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblfile_retent.Rows[0]) : null); }
public FileRetent GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); FileRetent fileRetent = null; if (row != null) { fileRetent = this.BuildFromRow(row); } return(fileRetent); }
protected FileRetent Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblfile_retent.AsEnumerable().SingleOrDefault(); FileRetent fileRetent = null; if (row != null) { fileRetent = this.BuildFromRow(row); } return(fileRetent); }
public void Delete(FileRetent record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblfile_retent.Newttblfile_retentRow(); FileRetent.BuildMinimalRow(ref row, record); this.dataSet.ttblfile_retent.Addttblfile_retentRow((pdsfile_retentDataSet.ttblfile_retentRow)row); } row.Delete(); this.SaveChanges(); }
public FileRetent Update(FileRetent 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.ttblfile_retent.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblfile_retent.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, FileRetent record) { FileRetent.UpdateRowFromFileRetent(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public FileRetent Update(FileRetent record) { return(this.repository.Update(record)); }
public FileRetent Insert(FileRetent record) { return(this.repository.Insert(record)); }
public void Delete(FileRetent record) { this.repository.Delete(record); }
public void Delete(FileRetent record) { this.adapter.Delete(record); }
public FileRetent Update(FileRetent record) { return(this.adapter.Update(record)); }
public FileRetent Insert(FileRetent record) { return(this.adapter.Insert(record)); }