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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblbinmst.AddttblbinmstRow((pdsbinmstDataSet.ttblbinmstRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblbinmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbinmst.Rows[0]) : null);
        }
コード例 #3
0
        public Binmst GetByRowId(string rowId, string fldList)
        {
            var    row    = this.GetRowByRowId(rowId, fldList);
            Binmst binmst = null;

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

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

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