public void Add(Place place)
 {
     using (var cnx = Connection)
     {
         cnx.Add(place);
     }
 }
 public void Update(Place place, IEnumerable<string> fields = null)
 {
     using (var cnx = Connection)
     {
         cnx.Update<Place>(place, fields);
     }
 }
Exemple #3
0
 public void TestAdd()
 {
     var madrid = new Place("Madrid", 40.4381311, -3.8196197);
     var placeRepository = new PlaceRepository();
     placeRepository.Add(madrid);
 }