日期:2014-05-20 浏览次数:20741 次
using System; using System.Linq; namespace RoomReveration { public class RoomReservationData { public void ReserveRoom(RoomReservation roomReservation ) { using (RoomReservationDataContext data = new RoomReservationDataContext()) { data.RoomReservation.Add(roomReservation ); data.SubmitChanges(); } } } }