Jimmy Engström

NAVIGATION

Pluralization for Entity Framework Core Nuget

2018-04-10 08:00:00 +0000

Nuget

In one of the projects I work on we use database first, but with EF core the class names was terrible, no pluralization, no singularization.
See previous post

I wanted to simplify this more so I created a nuget package so now the only thing you have to do is:
1. Add the nuget package
2. Add a class (Name suggestion:PluralizeDesignTimeServices.cs)
3. Run dotnet ef scaffold…… and everything will be named correctly =)

If some translations are missing, please do a PR or contact me and I will add them.

Pluralization for Entity Framework Core

2018-01-04 08:00:00 +0000

I recently started working with .NET Core and I didn’t like that Microsoft removed the automatic pluralization/singularization of classes and collection in Entity Framework Core. They did however give us the opportunity to hook in our own. This is talked about in this StackOverflow post

What you need to do is to add a couple of files to your Entity Framework Core project.

I created a folder named “Pluralize” and added a PluralizationService. I choose to modify the one Microsoft provided in previous versions of Entity Framework found here.
You can of course just create your own. These are the files I use:

This will automatically register MyPluralizer and it will be used the next time you update your Entity Framework model.

Hope this helps you and if you have any feedback, please contact me.

Setting up source control for a HoloLens Unity project

2016-09-19 08:00:00 +0000

Don't source control generated files

When source controlling your Unity HoloLens project there is no reason to save the generated code since it is generated =)
Unity won't replace some of the generated files so if you for example change icons/tiles in the Unity project, those part will not be replaced when generating the code again.
A good practice is to export to new folders every time.
 

.Gitignore

There are only a couple of folders worth adding to source control.
When setting up your project for the first time, just add the .gitignore file from here:
https://github.com/github/gitignore/blob/master/Unity.gitignore
That way only the important files will be controlled.
 
You can also do this when creating a new project on GitHub.
 
clip_image001.png
 
 

Setting up your project

Go to Edit -> Project Settings -> Editor
To make source control work hassle free, you should make sure version control has visible meta files (or hidden meta files, if you don't want to see them in Windows Explorer).
It will add a meta file for each asset in you project, this will make sure that only the asset and the meta files gets tagged as changed if you change an asset, otherwise the whole folder would be tagged as changed.
Also make sure Asset serialization -> Mode is set to "Force Text" this will make your source control handle diffs (text is easier to handle than binary-files.
Using the Hololens toolkit http://www.apeoholic.se/hololens/2016/07/27/setting-up-a-hololens-unity-project.html will change these settings for you.
 
clip_image002.png

Bluetooth && Azure IoT hub == IoT - Or how to rule billions of devices

2016-09-10 10:00:00 +0000

This is my presentation from NDC Oslo 2016. NDC was fantastic, really good conference for both speakers and attendees, I hope to come back next year.

Bluetooth && Azure IoT hub == IoT - Or how to rule billions of devices - Jimmy Engström from NDC Conferences on Vimeo.

The market totally explodes with new gadgets that can connect to tablets, pc’s and phones. In 2015 alone there were 3 billion Bluetooth devices manufactured. In this session I will show how you can take advantage of that and how to communicate with devices that are Bluetooth enabled. I will also show how to figure out undocumented devices and how to use Azure IoT hub to turn them into IoT devices.

Let us AllJoyn in the fun of IoT

2016-08-29 10:00:00 +0000

This is my presentation from NDC Oslo 2016. NDC was fantastic, really good conference for both speakers and attendees, I hope to come back next year.

Let us AllJoyn in the fun of IoT - Jimmy Engström from NDC Conferences on Vimeo.

There are billions of IoT Devices and almost as many ways to communicate with them. Alljoyn is a standardized way to talk to IoT devices. With the help of this standard the devices themself can tell you about and expose what functionality you can use. All these things are implemented in Windows 10, we will look at how you can find devices, how to communicate with them and how AllJoyn works.