Collection navigation properties and fields in EF Core 1.1

There has recently been some confusion about what mappings are supported for collection navigation properties in EF Core. This post is an attempt to clear things up by showing:

  • What types of collection are supported
  • When the backing field can be used directly

Continue reading

Advertisements

Dependency Injection in EF Core 1.1

EF Core can interact with dependency injection (D.I.) in two ways:

  • A D.I. container can be used to create DbContext instances
  • EF uses a D.I. container internally for its own services

The first of these was covered in a previous post. This post covers how EF uses dependency injection internally and how it can interact with an external container.

Continue reading

EF Core 1.1 – Creating DbContext instances

This post describes the different ways to create and configure instances of DbContext in EF Core 1.1. This includes:

  • Calling a constructor directly and overriding OnConfiguring
  • Passing DbContextOptions to the constructor
  • Using Dependency Injection (D.I.) to create instances

Continue reading

EF7 Provider Building Blocks

In this post I’ll outline the basic building blocks needed for an EF7 provider. The idea is not to show how everything should be implemented, but rather to show what pieces are needed and how they fit together. The best examples of EF7 providers are the SQL Server and SQLite providers, which ca both be found in the EF repro on GitHub.

EF7 providers should be shipped as NuGet packages. This post does not cover NuGet packaging, but you can look at the GitHib repro for some ideas on how to do this.

Continue reading

Lego Mindstorms 360° Photobot for Gear VR

I found this video a week or so ago showing how to create 360° spherical photos that can be viewed in the Samsung/Oculus Gear VR. It works nicely, but it is both tedious and error-prone trying to manually capture all the images needed for a full spherical picture. I figured it would be much more convenient if something could automatically move the camera appropriately. Enter the Lego Mindstorms 360° Photobot for Gear VR!

Continue reading

The future of Virtual Reality is not gaming…

It is starting with games, games are a great fit, and the games are going to be awesome. But it will become huge through immersive sports, immersive music, and most importantly, immersive storytelling.

Why? Because regardless of technology by far the most popular entertainments are ones that people can enjoy passively. Many more people regularly watch sports than play sports. Many more people enjoy music performances than play music. Many more people read books, watch TV, and go to the movies than play video games.

Continue reading