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

            if ((id_2 == null) || (id_3 == null))
            {
                return(false);
            }
            return(id_2.Equals(id_3));
        }