tofutim tofutim - 1 year ago 126
C# Question

What does AddTablesWithEntityFramework() vs AddTables(new MobileAppTableConfiguration()?

I have been using

.AddTables(new MobileAppTableConfiguration()

to setup my MobileAppConfiguration, but recently saw in Adrian Hall's book


How are these different? Should I be using the latter?

This call comes in Startup.cs in a standard Azure Mobile App, e.g.,

public static void SetupMobileApp(IAppBuilder app, IKernel kernel)
HttpConfiguration config = new HttpConfiguration();

//new MobileAppConfiguration()
// .UseDefaultConfiguration()
// .ApplyTo(config);

new MobileAppConfiguration()
.AddTables(new MobileAppTableConfiguration()

Answer Source

It's the same thing, it only sets the default settings for EntityFramework with TableController. Source.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download