public Icss Insert(Icss record) { DataRow row = this.dataSet.ttblicss.NewttblicssRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicss.AddttblicssRow((pdsicssDataSet.ttblicssRow)row); this.SaveChanges(); return this.dataSet.ttblicss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicss.Rows[0]) : null; }
public Icss GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icss icss = null; if (row != null) { icss = this.BuildFromRow(row); } return icss; }
protected Icss Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicss.AsEnumerable().SingleOrDefault(); Icss icss = null; if (row != null) { icss = this.BuildFromRow(row); } return icss; }
public void Delete(Icss record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicss.NewttblicssRow(); Icss.BuildMinimalRow(ref row, record); this.dataSet.ttblicss.AddttblicssRow((pdsicssDataSet.ttblicssRow)row); } row.Delete(); this.SaveChanges(); }
public Icss Update(Icss 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.ttblicss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicss.Rows[0]) : null; } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return null; }
public void UpdateToRow(ref DataRow row, Icss record) { Icss.UpdateRowFromIcss(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Icss BuildFromRow(DataRow row) { var returnRecord = Icss.BuildIcssFromRow(row); returnRecord = this.BuildExtraFromRow<Icss>(returnRecord, row); return returnRecord; }
public void Delete(Icss record) { this.adapter.Delete(record); }
public Icss Update(Icss record) { return(this.adapter.Update(record)); }
public Icss Insert(Icss record) { return(this.adapter.Insert(record)); }
public void Delete(Icss record) { this.repository.Delete(record); }
public Icss Update(Icss record) { return(this.repository.Update(record)); }
public Icss Insert(Icss record) { return(this.repository.Insert(record)); }