remove unnecessary code
This commit is contained in:
parent
b1ce4f40f4
commit
607db6b494
|
@ -38,23 +38,6 @@ namespace db_AI_4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Insert Locations into Database start
|
|
||||||
public void InsertLocations(string StreetName, int LocationCapacity, string LocationName)
|
|
||||||
{
|
|
||||||
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
|
|
||||||
{
|
|
||||||
List<GetLocations> locations = new List<GetLocations>();
|
|
||||||
|
|
||||||
locations.Add(new GetLocations { streetname = StreetName, location_capacity = LocationCapacity, location_name = LocationName });
|
|
||||||
|
|
||||||
connection.Execute("INSERT INTO dbo.locations (streetname, location_capacity, location_name)" +
|
|
||||||
" VALUES (@streetName, @location_capacity, @location_name)", locations);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Insert Locations into Database end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Insert Rents into Database start
|
// Insert Rents into Database start
|
||||||
public void InsertRent(string RentDate, int MemberID, int RentPriceID )
|
public void InsertRent(string RentDate, int MemberID, int RentPriceID )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue