コード例 #1
0
 public bool Equals(PsaTrace another)
 {
     if (Vin.Equals(another.Vin, StringComparison.OrdinalIgnoreCase) &&
         Date == another.Date)
     {
         return(true);
     }
     return(false);
 }
コード例 #2
0
        public override bool Equals(object obj)
        {
            PsaTrace trace = obj as PsaTrace;

            if (trace == null)
            {
                throw new ArgumentException("Should be the same object type to compare.");
            }
            return(Equals(trace));
        }
コード例 #3
0
        public override void CopyTo(DomainObject target)
        {
            base.CopyTo(target);
            PsaTrace trace = target as PsaTrace;

            trace.Address          = Address;
            trace.Application      = Application;
            trace.VehicleModelName = VehicleModelName;
            trace.Mileage          = Mileage;
            trace.Manufacturer     = Manufacturer;
            trace.Date             = Date;
            trace.Format           = Format;
            trace.Phone            = Phone;
            trace.PhoneChannel     = PhoneChannel;
            trace.SavesetId        = SavesetId;
            trace.ToolName         = ToolName;
            trace.ToolSerialNumber = ToolSerialNumber;
            trace.Vin          = Vin;
            trace.PsaDatasetId = PsaDatasetId;
        }