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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblicenh.AddttblicenhRow((pdsicenhDataSet.ttblicenhRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblicenh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicenh.Rows[0]) : null);
        }
コード例 #3
0
        public Icenh GetByRowId(string rowId, string fldList)
        {
            var   row   = this.GetRowByRowId(rowId, fldList);
            Icenh icenh = null;

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

            if (row != null)
            {
                icenh = this.BuildFromRow(row);
            }
            return(icenh);
        }
コード例 #5
0
        private void DeleteUseRowID(Icenh record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblicenh.NewttblicenhRow();
                Icenh.BuildMinimalRow(ref row, record);
                this.dataSet.ttblicenh.AddttblicenhRow((pdsicenhDataSet.ttblicenhRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
コード例 #6
0
        public Icenh Update(Icenh record)
        {
            var row = this.GetRowByRowpointer(record.rowpointer, string.Empty);

            if (row != null)
            {
                this.UpdateToRow(ref row, record);
                this.ExtraUpdateToRow(ref row, record);
                this.SaveChanges();
                return(this.dataSet.ttblicenh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicenh.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
コード例 #7
0
 public void UpdateToRow(ref DataRow row, Icenh record)
 {
     Icenh.UpdateRowFromIcenh(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
コード例 #8
0
 public void Delete(Icenh record)
 {
     this.repository.Delete(record);
 }
コード例 #9
0
 public Icenh Update(Icenh record)
 {
     return(this.repository.Update(record));
 }
コード例 #10
0
 public Icenh Insert(Icenh record)
 {
     return(this.repository.Insert(record));
 }
コード例 #11
0
 public Icenh Insert(Icenh record)
 {
     return(this.adapter.Insert(record));
 }
コード例 #12
0
 public void Delete(Icenh record)
 {
     this.adapter.Delete(record);
 }
コード例 #13
0
 public Icenh Update(Icenh record)
 {
     return(this.adapter.Update(record));
 }