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

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

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblempmst.AddttblempmstRow((pdsempmstDataSet.ttblempmstRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblempmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblempmst.Rows[0]) : null);
        }
コード例 #3
0
        public Empmst GetByRowId(string rowId, string fldList)
        {
            var    row    = this.GetRowByRowId(rowId, fldList);
            Empmst empmst = null;

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

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

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