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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblpv_jmln.Addttblpv_jmlnRow((pdspv_jmlnDataSet.ttblpv_jmlnRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblpv_jmln.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_jmln.Rows[0]) : null);
        }
コード例 #3
0
        public PvJmln GetByRowId(string rowId, string fldList)
        {
            var    row    = this.GetRowByRowId(rowId, fldList);
            PvJmln pvJmln = null;

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

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

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