------解决方案-------------------- 你可以试试,先在生成里面点重新生成解决方案,再点你的数所源控件,再在上面找到一个刷新框架的字样点下就OK啦
------解决方案--------------------
using System; using System.Collections.Generic; using System.Text; using HotelDAL; using HotelModel; using System.ComponentModel;
namespace HotelBLL { [DataObject()] public class RoomTypeManager { [DataObjectMethod(DataObjectMethodType.Select)] public static List<RoomType> GetRoomType() { return RoomTypeService.GetRoomType(); }
[DataObjectMethod(DataObjectMethodType.Select)] public static RoomType GetRoomTypeByTypeId(int typeId) { return RoomTypeService.GetRoomTypeByTypeId(typeId); }
[DataObjectMethod(DataObjectMethodType.Update)] public static int UpdateRoomTypeByTypeId(RoomType roomType) { return RoomTypeService.UpdateRoomTypeByTypeId(roomType); }
[DataObjectMethod(DataObjectMethodType.Insert)] public static int InsertRoomTypeByTypeId(RoomType roomType) { return RoomTypeService.InsertRoomType(roomType); }
[DataObjectMethod(DataObjectMethodType.Delete)] public static int DeleteRoomTypeByTypeId(int typeId) { return RoomTypeService.DeleteRoomTypeByTypeId(typeId); } } }