예제 #1
0
        public DealerZipCode Copy()
        {
            DealerZipCode _dealerZipCode = new DealerZipCode();

            _dealerZipCode.DealerID     = _dealerID;
            _dealerZipCode.ZipGeoCodeID = _zipGeoCodeID;
            return(_dealerZipCode);
        }
예제 #2
0
        static public void DeleteDealerZipCode(DealerZipCode objDealerZipCode)
        {
            Database db = DatabaseFactory.CreateDatabase("BKLeadsOnline");

            System.Data.Common.DbCommand dbCommand = db.GetStoredProcCommand("p_DealerZipCodeDelete");
            db.AddInParameter(dbCommand, "DealerID", DbType.Int32, objDealerZipCode.DealerID);
            db.AddInParameter(dbCommand, "ZipGeoCodeID", DbType.Int32, objDealerZipCode.ZipGeoCodeID);
            db.ExecuteNonQuery(dbCommand);
        }