public Smsm BuildFromRow(DataRow row) { var returnRecord = Smsm.BuildSmsmFromRow(row); returnRecord = this.BuildExtraFromRow <Smsm>(returnRecord, row); return(returnRecord); }
public Smsm Insert(Smsm record) { DataRow row = this.dataSet.ttblsmsm.NewttblsmsmRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsmsm.AddttblsmsmRow((pdssmsmDataSet.ttblsmsmRow)row); this.SaveChanges(); return(this.dataSet.ttblsmsm.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsm.Rows[0]) : null); }
public Smsm GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Smsm smsm = null; if (row != null) { smsm = this.BuildFromRow(row); } return(smsm); }
protected Smsm Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsmsm.AsEnumerable().SingleOrDefault(); Smsm smsm = null; if (row != null) { smsm = this.BuildFromRow(row); } return(smsm); }
public void Delete(Smsm record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsmsm.NewttblsmsmRow(); Smsm.BuildMinimalRow(ref row, record); this.dataSet.ttblsmsm.AddttblsmsmRow((pdssmsmDataSet.ttblsmsmRow)row); } row.Delete(); this.SaveChanges(); }
public Smsm Update(Smsm 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.ttblsmsm.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsm.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Smsm Insert(Smsm record) { return(this.repository.Insert(record)); }
public void Delete(Smsm record) { this.repository.Delete(record); }
public Smsm Update(Smsm record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Smsm record) { Smsm.UpdateRowFromSmsm(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Smsm record) { this.adapter.Delete(record); }
public Smsm Update(Smsm record) { return(this.adapter.Update(record)); }
public Smsm Insert(Smsm record) { return(this.adapter.Insert(record)); }