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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblapebc.AddttblapebcRow((pdsapebcDataSet.ttblapebcRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblapebc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapebc.Rows[0]) : null);
        }
コード例 #3
0
        public Apebc GetByRowId(string rowId, string fldList)
        {
            var   row   = this.GetRowByRowId(rowId, fldList);
            Apebc apebc = null;

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

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

            if (row == null)
            {
                row = this.dataSet.ttblapebc.NewttblapebcRow();
                Apebc.BuildMinimalRow(ref row, record);
                this.dataSet.ttblapebc.AddttblapebcRow((pdsapebcDataSet.ttblapebcRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
コード例 #6
0
        public Apebc Update(Apebc 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.ttblapebc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapebc.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
コード例 #7
0
ファイル: ApebcRepository.g.cs プロジェクト: arentlog/web-ui
 public void Delete(Apebc record)
 {
     this.adapter.Delete(record);
 }
コード例 #8
0
ファイル: ApebcRepository.g.cs プロジェクト: arentlog/web-ui
 public Apebc Update(Apebc record)
 {
     return(this.adapter.Update(record));
 }
コード例 #9
0
ファイル: ApebcRepository.g.cs プロジェクト: arentlog/web-ui
 public Apebc Insert(Apebc record)
 {
     return(this.adapter.Insert(record));
 }
コード例 #10
0
 public void Delete(Apebc record)
 {
     this.repository.Delete(record);
 }
コード例 #11
0
 public Apebc Update(Apebc record)
 {
     return(this.repository.Update(record));
 }
コード例 #12
0
 public Apebc Insert(Apebc record)
 {
     return(this.repository.Insert(record));
 }
コード例 #13
0
 public void UpdateToRow(ref DataRow row, Apebc record)
 {
     Apebc.UpdateRowFromApebc(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }