public static void addLocatie(opdracht contract, locatie locatie, string type) { locatie_opdracht lo = new locatie_opdracht(); lo.locatie = locatie; lo.opdracht = contract; lo.type = type; dc.locatie_opdrachts.InsertOnSubmit(lo); dc.SubmitChanges(); }
public static void addLocatieBijOfferte(locatie locatie, opdracht offerte, string type) { locatie_opdracht lo = new locatie_opdracht(); lo.locatie = locatie; lo.opdracht = offerte; lo.type = type; dc.locatie_opdrachts.InsertOnSubmit(lo); dc.SubmitChanges(); }