I am developing a C# MVC4 internet application and would like to get the data from this database and use this data in my Xamarin application.
Here is my MVC Context class:
public class DatabaseContext : DbContext
{
public DbSet<MapLocation> MapLocations { get; set; }
public DbSet<MapLocationCompany> MapLocationCompanies { get; set; }
public DbSet<MapLocationDetail> MapLocationDetails { get; set; }
}
Here is my MVC connection string that I am using in the web.config:
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=CanFindLocation-20140207193713;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\CanFindLocation-20140207193713.mdf" providerName="System.Data.SqlClient" />
In my Xamarin application, how can I get a DbSet for each of the DbSets in my MVC 4 Context class?
Is this possible? Can I have some advice and/or some help with this?
Thanks in advance