示例#1
0
 /// <summary>
 /// Set current MBO attributes by specified MBO.
 /// </summary>
 public static YPF.Comercial.RRCC.SUP.intrnl.SISSubscription Merge(YPF.Comercial.RRCC.SUP.intrnl.SISSubscription entity)
 {
     YPF.Comercial.RRCC.SUP.intrnl.SISSubscription ent = Find(entity._pk());
     if (ent == null)
     {
         ent = new YPF.Comercial.RRCC.SUP.intrnl.SISSubscription();
     }
     ent.CopyAll(entity);
     ent.Save();
     return(ent);
 }
示例#2
0
 /// <summary>
 /// override method
 /// </summary>
 public override bool Equals(object that)
 {
     YPF.Comercial.RRCC.SUP.intrnl.SISSubscription that_1 = that as YPF.Comercial.RRCC.SUP.intrnl.SISSubscription;
     if (that_1 == null)
     {
         return(false);
     }
     YPF.Comercial.RRCC.SUP.intrnl.SISSubscriptionKey id_2 = this._pk();
     YPF.Comercial.RRCC.SUP.intrnl.SISSubscriptionKey id_3 = that_1._pk();
     if ((id_2 == null) || (id_3 == null))
     {
         return(false);
     }
     return(id_2.Equals(id_3));
 }