Azure Mobile Services helps provision a database for you when you create a new mobile service. But what if you want to connect to your own, existing SQL Azure database with the .NET backend? For example:
You have an existing Mobile Service that uses the Node backend and has a lot of data in the database, and you want to access that data with the .NET backend.You have data in an existing database that you want to expose through the .NET backend.The basic steps are:
Add the database model and database types that map to your database tables.Add an application setting that contains the connection string for your database.Add a constructor for your model's data context that takes the connection string, read from app settings.Add client types (also known as Data Transfer Objects, or DTOs) that implement ITableData, so they can be used by the TableController<T>.Add ...
Go to the complete details ...