コード例 #1
0
        public PvApeba BuildFromRow(DataRow row)
        {
            var returnRecord = PvApeba.BuildPvApebaFromRow(row);

            returnRecord = this.BuildExtraFromRow <PvApeba>(returnRecord, row);
            return(returnRecord);
        }
コード例 #2
0
        public PvApeba Insert(PvApeba record)
        {
            DataRow row = this.dataSet.ttblpv_apeba.Newttblpv_apebaRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblpv_apeba.Addttblpv_apebaRow((pdspv_apebaDataSet.ttblpv_apebaRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblpv_apeba.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_apeba.Rows[0]) : null);
        }
コード例 #3
0
        public PvApeba GetByRowId(string rowId, string fldList)
        {
            var     row     = this.GetRowByRowId(rowId, fldList);
            PvApeba pvApeba = null;

            if (row != null)
            {
                pvApeba = this.BuildFromRow(row);
            }
            return(pvApeba);
        }
コード例 #4
0
        protected PvApeba Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var     row     = this.dataSet.ttblpv_apeba.AsEnumerable().SingleOrDefault();
            PvApeba pvApeba = null;

            if (row != null)
            {
                pvApeba = this.BuildFromRow(row);
            }
            return(pvApeba);
        }
コード例 #5
0
        public void Delete(PvApeba record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblpv_apeba.Newttblpv_apebaRow();
                PvApeba.BuildMinimalRow(ref row, record);
                this.dataSet.ttblpv_apeba.Addttblpv_apebaRow((pdspv_apebaDataSet.ttblpv_apebaRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
コード例 #6
0
        public PvApeba Update(PvApeba 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.ttblpv_apeba.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_apeba.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
コード例 #7
0
 public void Delete(PvApeba record)
 {
     this.repository.Delete(record);
 }
コード例 #8
0
 public PvApeba Update(PvApeba record)
 {
     return(this.repository.Update(record));
 }
コード例 #9
0
 public PvApeba Insert(PvApeba record)
 {
     return(this.repository.Insert(record));
 }
コード例 #10
0
 public void Delete(PvApeba record)
 {
     this.adapter.Delete(record);
 }
コード例 #11
0
 public PvApeba Update(PvApeba record)
 {
     return(this.adapter.Update(record));
 }
コード例 #12
0
 public PvApeba Insert(PvApeba record)
 {
     return(this.adapter.Insert(record));
 }
コード例 #13
0
 public void UpdateToRow(ref DataRow row, PvApeba record)
 {
     PvApeba.UpdateRowFromPvApeba(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }