Exemplo n.º 1
0
 public void SetFourMeasurmentMacIds(DeterminantMacIds fourMacIds)
 {
     using (var ctx = new WifiLocalizerContext())
     {
         DatabaseHandler.AddElementToDataBase(ctx, ctx.DeterminantMacIds, fourMacIds);
     }
 }
Exemplo n.º 2
0
        public void AddRSSIMeasurmentInXYPoint(RSSIMeasurmentPoint RSSIMeasurmentPoint)
        {
            using (var ctx = new WifiLocalizerContext())
            {
                DeterminantMacIds determinantMacIds = ctx.DeterminantMacIds.Find(RSSIMeasurmentPoint.RoomId);

                RSSIMeasurmentPoint.DeterminantMacIds = determinantMacIds;
                DatabaseHandler.AddElementToDataBase(ctx, ctx.RSSIMeasurmentPoints, RSSIMeasurmentPoint);
            }
        }