public Sasog BuildFromRow(DataRow row) { var returnRecord = Sasog.BuildSasogFromRow(row); returnRecord = this.BuildExtraFromRow <Sasog>(returnRecord, row); return(returnRecord); }
public Sasog Insert(Sasog record) { DataRow row = this.dataSet.ttblsasog.NewttblsasogRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasog.AddttblsasogRow((pdssasogDataSet.ttblsasogRow)row); this.SaveChanges(); return(this.dataSet.ttblsasog.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasog.Rows[0]) : null); }
public Sasog GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasog sasog = null; if (row != null) { sasog = this.BuildFromRow(row); } return(sasog); }
protected Sasog Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasog.AsEnumerable().SingleOrDefault(); Sasog sasog = null; if (row != null) { sasog = this.BuildFromRow(row); } return(sasog); }
public void Delete(Sasog record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasog.NewttblsasogRow(); Sasog.BuildMinimalRow(ref row, record); this.dataSet.ttblsasog.AddttblsasogRow((pdssasogDataSet.ttblsasogRow)row); } row.Delete(); this.SaveChanges(); }
public Sasog Update(Sasog 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.ttblsasog.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasog.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Sasog record) { this.adapter.Delete(record); }
public Sasog Update(Sasog record) { return(this.adapter.Update(record)); }
public Sasog Insert(Sasog record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Sasog record) { Sasog.UpdateRowFromSasog(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sasog record) { this.repository.Delete(record); }
public Sasog Update(Sasog record) { return(this.repository.Update(record)); }
public Sasog Insert(Sasog record) { return(this.repository.Insert(record)); }