0

I have been using

.AddTables(new MobileAppTableConfiguration()
    .MapTableControllers()
    .AddEntityFramework()) 

to setup my MobileAppConfiguration, but recently saw in Adrian Hall's book https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/custom/

.AddTablesWithEntityFramework()

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()
            .MapApiControllers()
            .AddTables(new MobileAppTableConfiguration()
                .MapTableControllers()
                .AddEntityFramework())                
            .AddPushNotifications()
            .MapLegacyCrossDomainController()
            .ApplyTo(config);
tofutim
  • 22,664
  • 20
  • 87
  • 148
  • 1
    Nobody can guess the type of the object that these methods exist on. A bit of context might make this question answerable. – spender Oct 24 '16 at 18:23

1 Answers1

1

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

Dominique Alexandre
  • 1,023
  • 10
  • 29