public static string getGemeente(string postcode) { var query = (from g in dc.gemeentes where g.postcode == postcode select g); if (query.Any() == false) { return("Onbestaand"); } else { gemeente gemeente = query.First(); return(gemeente.naam); } }
partial void Deletegemeente(gemeente instance);
partial void Updategemeente(gemeente instance);
partial void Insertgemeente(gemeente instance);