public CityData SelectById(object id) { using (WorldMapDBContext context = new WorldMapDBContext()) { DbSet <CityData> table = context.Set <CityData>(); return(table.Find(id)); } }
public List <CityData> SelectAll() { using (WorldMapDBContext context = new WorldMapDBContext()) { DbSet <CityData> table = context.Set <CityData>(); return(table.ToList()); } }
public UserRoleMapping SelectById(object id) { using (WorldMapDBContext context = new WorldMapDBContext()) { DbSet <UserRoleMapping> table = context.Set <UserRoleMapping>(); return(table.Find(id)); } }
public List <UserRoleMapping> SelectAll() { using (WorldMapDBContext context = new WorldMapDBContext()) { DbSet <UserRoleMapping> table = context.Set <UserRoleMapping>(); return(table.ToList()); } }
public OverseasTerritoriesData SelectById(object id) { using (WorldMapDBContext context = new WorldMapDBContext()) { DbSet <OverseasTerritoriesData> table = context.Set <OverseasTerritoriesData>(); return(table.Find(id)); } }
public List <OverseasTerritoriesData> SelectAll() { using (WorldMapDBContext context = new WorldMapDBContext()) { DbSet <OverseasTerritoriesData> table = context.Set <OverseasTerritoriesData>(); return(table.ToList()); } }