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

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