Q. How do you get a list of classes under a namespace without instantiating those classes: Reflection
Read the rest of entry »
Q. How can you add meta-information, such as a description, to a class and return it without instantiating the class? Read on …
Q. What do those xmlns namespace directives at the root of an XAML page mean? Read on …
Some notes on adding and removing migrations in Entity Framework core.
EF Code First approach (Create class/es first)
Entity Framework, in Code First Manner, can auto-generate the scaffolding for accessing a database from an app from an app’s model class. In a previous blog I covered some issues wrt using Entity Framework Core with a Universal Windows (Platform) app with a Sqlite backend database. The entities are specified as classes in in a .Net Core class project separate to the app project (within the same solution). The issue addressed in that blog was a problem referencing the class library from the UWP project. This blog revisits the same topic with an emphasis upon the steps required to implement an EF Core backed UWP app.
Next Build ..
The SurfPad project as on GitHub and hackster.io is a UWP app that runs on a touchscreen Windows device. It runs as the configurable UI for an app running on an embedded device such as an Arduiino device or a Raspberry Pi (running IoT Core).. The frontend sends single characters as commands (representing button presses) whereas the backend returns responses as text strings, representing sensor data that the remote device has determined. So the communication data is textual. The communication between the two devices can be a network sockets client-server conduit, USB Serial or Bluetooth Serial. Whilst Bluetooth Serial works OK between a Windows 10 desktop (or IoT Core) as the frontend and an Arduino device as the remote backend, using an IoT Core device as the backend has been shown to be problematic. This article presents an alternative based upon Bluetooth RFComm Chat client –server architecture, which does work.
How about reimagining an old Surface etc, to be used as the UI for a remote app running on an Arduino or RPi. UI runs as a touch based UWP app and communicates …
Issue: Can pair a Windows 10 device with an Arduino device and communicate over RFCOMM. But although can pair two Windows 10 devices over Bluetooth Serial, I can’t serially transmit between them: No serial port for OutGoing end.
If you are used to right clicking on a Device in My Devices to get a menu of options for connecting to your device, then this functionality has been moved to the Actions column in the current version of IoTCoreDashboard.