Exemplo n.º 1
0
 public void CreateRoom(Room room)
 {
     room.Id = Query<int>(@"
     insert into Room(Name, CreateDate) values (@Name, @CreateDate);
     select last_insert_rowid();
     ", room).FirstOrDefault();
 }
Exemplo n.º 2
0
 private static RoomPlanClientData Map(Room data, IEnumerable<FurnitureCount> furnitures)
 {
     return new RoomPlanClientData
     {
         Name = data.Name,
         Furnitures = Map(furnitures),
         RemoveDate = Map(data.RemoveDate)
     };
 }