public Smseh BuildFromRow(DataRow row) { var returnRecord = Smseh.BuildSmsehFromRow(row); returnRecord = this.BuildExtraFromRow <Smseh>(returnRecord, row); return(returnRecord); }
public Smseh Insert(Smseh record) { DataRow row = this.dataSet.ttblsmseh.NewttblsmsehRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsmseh.AddttblsmsehRow((pdssmsehDataSet.ttblsmsehRow)row); this.SaveChanges(); return(this.dataSet.ttblsmseh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmseh.Rows[0]) : null); }
public Smseh GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Smseh smseh = null; if (row != null) { smseh = this.BuildFromRow(row); } return(smseh); }
protected Smseh Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsmseh.AsEnumerable().SingleOrDefault(); Smseh smseh = null; if (row != null) { smseh = this.BuildFromRow(row); } return(smseh); }
public void Delete(Smseh record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsmseh.NewttblsmsehRow(); Smseh.BuildMinimalRow(ref row, record); this.dataSet.ttblsmseh.AddttblsmsehRow((pdssmsehDataSet.ttblsmsehRow)row); } row.Delete(); this.SaveChanges(); }
public Smseh Update(Smseh 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.ttblsmseh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmseh.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Smseh record) { Smseh.UpdateRowFromSmseh(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Smseh record) { this.adapter.Delete(record); }
public Smseh Update(Smseh record) { return(this.adapter.Update(record)); }
public Smseh Insert(Smseh record) { return(this.adapter.Insert(record)); }
public void Delete(Smseh record) { this.repository.Delete(record); }
public Smseh Update(Smseh record) { return(this.repository.Update(record)); }
public Smseh Insert(Smseh record) { return(this.repository.Insert(record)); }