예제 #1
0
 public TicketCommentRepository(string conn)
 {
     dataMapper = new SqlDataMapper <TicketComment>(SqlDbType.Postgresql, conn, new TicketCommentBuilder());
 }
예제 #2
0
 public MealRepository(string connection)
 {
     dataMapper = new SqlDataMapper <Meal>(SqlDbType.Postgresql, connection, new MealBuilder());
 }
예제 #3
0
 public WareBookingRepository(string conn)
 {
     dataMapper = new SqlDataMapper <WareBooking>(SqlDbType.Postgresql, conn, new WareBookingBuilder());
     innerJoin  =
         " inner join \"Users\" U on \"WareBooking\".\"UserId\" = U.\"Id\" inner join \"Ware\" W on \"WareBooking\".\"WareId\" = W.\"Id\" inner join \"Place\" P on W.\"PlaceId\" = P.\"Id\" ";
 }
예제 #4
0
 public LoginRepository(string conn)
 {
     dataMapper = new SqlDataMapper <Login>(SqlDbType.Postgresql, conn, new LoginBuilder());
 }
예제 #5
0
 public WareRepository(string connection)
 {
     dataMapper = new SqlDataMapper <Ware>(SqlDbType.Postgresql, connection, new WareBuilder());
 }