public Icsoc BuildFromRow(DataRow row) { var returnRecord = Icsoc.BuildIcsocFromRow(row); returnRecord = this.BuildExtraFromRow <Icsoc>(returnRecord, row); return(returnRecord); }
public Icsoc Insert(Icsoc record) { DataRow row = this.dataSet.ttblicsoc.NewttblicsocRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsoc.AddttblicsocRow((pdsicsocDataSet.ttblicsocRow)row); this.SaveChanges(); return(this.dataSet.ttblicsoc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsoc.Rows[0]) : null); }
public Icsoc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsoc icsoc = null; if (row != null) { icsoc = this.BuildFromRow(row); } return(icsoc); }
protected Icsoc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsoc.AsEnumerable().SingleOrDefault(); Icsoc icsoc = null; if (row != null) { icsoc = this.BuildFromRow(row); } return(icsoc); }
public void Delete(Icsoc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsoc.NewttblicsocRow(); Icsoc.BuildMinimalRow(ref row, record); this.dataSet.ttblicsoc.AddttblicsocRow((pdsicsocDataSet.ttblicsocRow)row); } row.Delete(); this.SaveChanges(); }
public Icsoc Update(Icsoc 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.ttblicsoc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsoc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icsoc record) { Icsoc.UpdateRowFromIcsoc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsoc record) { this.adapter.Delete(record); }
public Icsoc Update(Icsoc record) { return(this.adapter.Update(record)); }
public Icsoc Insert(Icsoc record) { return(this.adapter.Insert(record)); }
public void Delete(Icsoc record) { this.repository.Delete(record); }
public Icsoc Update(Icsoc record) { return(this.repository.Update(record)); }
public Icsoc Insert(Icsoc record) { return(this.repository.Insert(record)); }