Beispiel #1
0
        public DrpLog BuildFromRow(DataRow row)
        {
            var returnRecord = DrpLog.BuildDrpLogFromRow(row);

            returnRecord = this.BuildExtraFromRow <DrpLog>(returnRecord, row);
            return(returnRecord);
        }
Beispiel #2
0
        public DrpLog Insert(DrpLog record)
        {
            DataRow row = this.dataSet.ttbldrp_log.Newttbldrp_logRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttbldrp_log.Addttbldrp_logRow((pdsdrp_logDataSet.ttbldrp_logRow)row);
            this.SaveChanges();
            return(this.dataSet.ttbldrp_log.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldrp_log.Rows[0]) : null);
        }
Beispiel #3
0
        public DrpLog GetByRowId(string rowId, string fldList)
        {
            var    row    = this.GetRowByRowId(rowId, fldList);
            DrpLog drpLog = null;

            if (row != null)
            {
                drpLog = this.BuildFromRow(row);
            }
            return(drpLog);
        }
Beispiel #4
0
        protected DrpLog Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var    row    = this.dataSet.ttbldrp_log.AsEnumerable().SingleOrDefault();
            DrpLog drpLog = null;

            if (row != null)
            {
                drpLog = this.BuildFromRow(row);
            }
            return(drpLog);
        }
Beispiel #5
0
        public void Delete(DrpLog record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttbldrp_log.Newttbldrp_logRow();
                DrpLog.BuildMinimalRow(ref row, record);
                this.dataSet.ttbldrp_log.Addttbldrp_logRow((pdsdrp_logDataSet.ttbldrp_logRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Beispiel #6
0
        public DrpLog Update(DrpLog 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.ttbldrp_log.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldrp_log.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Beispiel #7
0
 public void Delete(DrpLog record)
 {
     this.adapter.Delete(record);
 }
Beispiel #8
0
 public DrpLog Update(DrpLog record)
 {
     return(this.adapter.Update(record));
 }
Beispiel #9
0
 public DrpLog Insert(DrpLog record)
 {
     return(this.adapter.Insert(record));
 }
Beispiel #10
0
 public DrpLog Insert(DrpLog record)
 {
     return(this.repository.Insert(record));
 }
Beispiel #11
0
 public void Delete(DrpLog record)
 {
     this.repository.Delete(record);
 }
Beispiel #12
0
 public DrpLog Update(DrpLog record)
 {
     return(this.repository.Update(record));
 }
Beispiel #13
0
 public void UpdateToRow(ref DataRow row, DrpLog record)
 {
     DrpLog.UpdateRowFromDrpLog(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }