public Authpoints BuildFromRow(DataRow row) { var returnRecord = Authpoints.BuildAuthpointsFromRow(row); returnRecord = this.BuildExtraFromRow <Authpoints>(returnRecord, row); return(returnRecord); }
public Authpoints Insert(Authpoints record) { DataRow row = this.dataSet.ttblauthpoints.NewttblauthpointsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblauthpoints.AddttblauthpointsRow((pdsauthpointsDataSet.ttblauthpointsRow)row); this.SaveChanges(); return(this.dataSet.ttblauthpoints.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblauthpoints.Rows[0]) : null); }
public Authpoints GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Authpoints authpoints = null; if (row != null) { authpoints = this.BuildFromRow(row); } return(authpoints); }
protected Authpoints Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblauthpoints.AsEnumerable().SingleOrDefault(); Authpoints authpoints = null; if (row != null) { authpoints = this.BuildFromRow(row); } return(authpoints); }
public void Delete(Authpoints record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblauthpoints.NewttblauthpointsRow(); Authpoints.BuildMinimalRow(ref row, record); this.dataSet.ttblauthpoints.AddttblauthpointsRow((pdsauthpointsDataSet.ttblauthpointsRow)row); } row.Delete(); this.SaveChanges(); }
public Authpoints Update(Authpoints 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.ttblauthpoints.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblauthpoints.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Authpoints record) { Authpoints.UpdateRowFromAuthpoints(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Authpoints record) { this.adapter.Delete(record); }
public Authpoints Update(Authpoints record) { return(this.adapter.Update(record)); }
public Authpoints Insert(Authpoints record) { return(this.adapter.Insert(record)); }
public Authpoints Update(Authpoints record) { return(this.repository.Update(record)); }
public Authpoints Insert(Authpoints record) { return(this.repository.Insert(record)); }
public void Delete(Authpoints record) { this.repository.Delete(record); }