Exemple #1
0
 /// <summary>
 /// Метод добавляет в базу данных объект типа LocationArea
 /// </summary>
 /// <param name="location_area">Объект типа LocationArea</param>
 public static void Add(LocationArea location_area)
 {
     location_area _location_area = new location_area();
     _location_area.id_account = location_area.id_account;
     _location_area.name = location_area.name;
     _location_area.lattitude = location_area.lattitude;
     _location_area.longtitude = location_area.longtitude;
     _location_area.radius = location_area.radius;
     _location_area.id = location_area.id;
     _location_area.time_of_marking = location_area.time_of_marking;
     using (CustomSuzyEntities db = new CustomSuzyEntities())
     {
         db.location_area.Add(_location_area);
         db.SaveChanges();
     }
 }
Exemple #2
0
 internal LocationArea(location_area _Location_area)
 {
     _location_area = _Location_area;
 }
Exemple #3
0
 /// <summary>
 /// Это наш конструктор для LocationArea без параметров
 /// </summary>
 public LocationArea()
 {
     _location_area = new location_area();
 }