Exemplo n.º 1
0
        public Replicte BuildFromRow(DataRow row)
        {
            var returnRecord = Replicte.BuildReplicteFromRow(row);

            returnRecord = this.BuildExtraFromRow <Replicte>(returnRecord, row);
            return(returnRecord);
        }
Exemplo n.º 2
0
        public Replicte Insert(Replicte record)
        {
            DataRow row = this.dataSet.ttblreplicte.NewttblreplicteRow();

            this.UpdateToRow(ref row, record);
            this.ExtraUpdateToRow(ref row, record);
            this.dataSet.ttblreplicte.AddttblreplicteRow((pdsreplicteDataSet.ttblreplicteRow)row);
            this.SaveChanges();
            return(this.dataSet.ttblreplicte.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblreplicte.Rows[0]) : null);
        }
Exemplo n.º 3
0
        public Replicte GetByRowId(string rowId, string fldList)
        {
            var      row      = this.GetRowByRowId(rowId, fldList);
            Replicte replicte = null;

            if (row != null)
            {
                replicte = this.BuildFromRow(row);
            }
            return(replicte);
        }
Exemplo n.º 4
0
        protected Replicte Fetch(string where, int batchsize, string fldList)
        {
            this.FetchWhere(where, batchsize, fldList);
            var      row      = this.dataSet.ttblreplicte.AsEnumerable().SingleOrDefault();
            Replicte replicte = null;

            if (row != null)
            {
                replicte = this.BuildFromRow(row);
            }
            return(replicte);
        }
Exemplo n.º 5
0
        public void Delete(Replicte record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblreplicte.NewttblreplicteRow();
                Replicte.BuildMinimalRow(ref row, record);
                this.dataSet.ttblreplicte.AddttblreplicteRow((pdsreplicteDataSet.ttblreplicteRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }
Exemplo n.º 6
0
        public Replicte Update(Replicte 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.ttblreplicte.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblreplicte.Rows[0]) : null);
            }
            ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421);
            return(null);
        }
Exemplo n.º 7
0
 public void UpdateToRow(ref DataRow row, Replicte record)
 {
     Replicte.UpdateRowFromReplicte(ref row, record);
     this.ExtraUpdateToRow(ref row, record);
 }
Exemplo n.º 8
0
 public void Delete(Replicte record)
 {
     this.adapter.Delete(record);
 }
Exemplo n.º 9
0
 public Replicte Update(Replicte record)
 {
     return(this.adapter.Update(record));
 }
Exemplo n.º 10
0
 public Replicte Insert(Replicte record)
 {
     return(this.adapter.Insert(record));
 }
Exemplo n.º 11
0
 public Replicte Update(Replicte record)
 {
     return(this.repository.Update(record));
 }
Exemplo n.º 12
0
 public Replicte Insert(Replicte record)
 {
     return(this.repository.Insert(record));
 }
Exemplo n.º 13
0
 public void Delete(Replicte record)
 {
     this.repository.Delete(record);
 }