public Wllicense BuildFromRow(DataRow row) { var returnRecord = Wllicense.BuildWllicenseFromRow(row); returnRecord = this.BuildExtraFromRow <Wllicense>(returnRecord, row); return(returnRecord); }
public Wllicense Insert(Wllicense record) { DataRow row = this.dataSet.ttblwllicense.NewttblwllicenseRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblwllicense.AddttblwllicenseRow((pdswllicenseDataSet.ttblwllicenseRow)row); this.SaveChanges(); return(this.dataSet.ttblwllicense.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwllicense.Rows[0]) : null); }
public Wllicense GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Wllicense wllicense = null; if (row != null) { wllicense = this.BuildFromRow(row); } return(wllicense); }
protected Wllicense Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblwllicense.AsEnumerable().SingleOrDefault(); Wllicense wllicense = null; if (row != null) { wllicense = this.BuildFromRow(row); } return(wllicense); }
public void Delete(Wllicense record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblwllicense.NewttblwllicenseRow(); Wllicense.BuildMinimalRow(ref row, record); this.dataSet.ttblwllicense.AddttblwllicenseRow((pdswllicenseDataSet.ttblwllicenseRow)row); } row.Delete(); this.SaveChanges(); }
public Wllicense Update(Wllicense 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.ttblwllicense.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwllicense.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Wllicense record) { this.adapter.Delete(record); }
public Wllicense Update(Wllicense record) { return(this.adapter.Update(record)); }
public Wllicense Insert(Wllicense record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Wllicense record) { Wllicense.UpdateRowFromWllicense(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Wllicense Update(Wllicense record) { return(this.repository.Update(record)); }
public Wllicense Insert(Wllicense record) { return(this.repository.Insert(record)); }
public void Delete(Wllicense record) { this.repository.Delete(record); }