Ejemplo n.º 1
0
        protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider)
        {
            this.dataSet.SignatureDateProvider = signatureProvider;

            try
            {
                foreach (var item in rows)
                {
                    var view = this.views[item.TableName];
                    if (DomainRowInfo.ClearKey.SequenceEqual(item.Keys) == true)
                    {
                        view.Table.Clear();
                    }
                    else
                    {
                        CremaDomainUtility.Delete(view, item.Keys);
                    }
                }
                this.dataSet.AcceptChanges();
            }
            catch (Exception e)
            {
                this.dataSet.RejectChanges();
                throw e;
            }
        }
Ejemplo n.º 2
0
 protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDate signatureDate)
 {
     this.template.SignatureDateProvider = new InternalSignatureDateProvider(signatureDate);
     foreach (var item in rows)
     {
         CremaDomainUtility.Delete(this.view, item.Keys);
     }
     this.template.AcceptChanges();
 }
Ejemplo n.º 3
0
        protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider)
        {
            this.template.SignatureDateProvider = signatureProvider;

            foreach (var item in rows)
            {
                CremaDomainUtility.Delete(this.view, item.Keys);
            }
        }
Ejemplo n.º 4
0
 protected override DomainRowInfo[] OnRemoveRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDateProvider signatureProvider)
 {
     this.template.SignatureDateProvider = signatureProvider;
     foreach (var item in rows)
     {
         CremaDomainUtility.Delete(this.view, item.Keys);
     }
     this.data = null;
     return(rows);
 }
Ejemplo n.º 5
0
 protected override void OnRemoveRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDate signatureDate)
 {
     this.dataType.BeginLoadData();
     try
     {
         foreach (var item in rows)
         {
             CremaDomainUtility.Delete(this.view, item.Keys);
         }
     }
     finally
     {
         this.dataType.EndLoadData();
     }
     this.dataType.ModificationInfo = signatureDate;
     this.dataType.AcceptChanges();
 }
Ejemplo n.º 6
0
 protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDate signatureDate)
 {
     foreach (var item in rows.Reverse())
     {
         var view = this.views[item.TableName];
         if (DomainRowInfo.ClearKey.SequenceEqual(item.Keys) == true)
         {
             view.Table.Clear();
         }
         else
         {
             CremaDomainUtility.Delete(view, item.Keys);
         }
         this.tables[view].ContentsInfo = signatureDate;
     }
     this.dataSet.AcceptChanges();
 }
Ejemplo n.º 7
0
        protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider)
        {
            this.dataType.SignatureDateProvider = signatureProvider;

            try
            {
                foreach (var item in rows)
                {
                    CremaDomainUtility.Delete(this.view, item.Keys);
                }

                this.dataType.AcceptChanges();
            }
            catch (Exception e)
            {
                this.dataType.RejectChanges();
                throw e;
            }
        }
Ejemplo n.º 8
0
 protected override DomainRowInfo[] OnRemoveRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDateProvider signatureProvider)
 {
     this.dataType.SignatureDateProvider = signatureProvider;
     try
     {
         foreach (var item in rows)
         {
             CremaDomainUtility.Delete(this.view, item.Keys);
         }
         this.dataType.AcceptChanges();
         this.data = null;
         return(rows);
     }
     catch
     {
         this.dataType.RejectChanges();
         throw;
     }
 }