using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Dao
{
	public interface IRoomTypeModalRepository : IRepository<RoomTypeModal>
	{
        IQueryable<RoomTypeModal> LoadAllByPage(out long total, int page, int rows, string order, string sort, int roomTypeId);
        /// <summary>
        /// 通过房型删除回路
        /// </summary>
        /// <param name="roomTypeID"></param>
        /// <param name="sourceType">-1全部删除，0后台，1宝易</param>
        void DeleteByRoomTypeID(int roomTypeID, int sourceType);

        void DeleteByAddress(int roomTypeID, string address);
	}
}
