Exemplo n.º 1
0
 public CityData SelectById(object id)
 {
     using (WorldMapDBContext context = new WorldMapDBContext())
     {
         DbSet <CityData> table = context.Set <CityData>();
         return(table.Find(id));
     }
 }
Exemplo n.º 2
0
 public List <CityData> SelectAll()
 {
     using (WorldMapDBContext context = new WorldMapDBContext())
     {
         DbSet <CityData> table = context.Set <CityData>();
         return(table.ToList());
     }
 }
Exemplo n.º 3
0
 public UserRoleMapping SelectById(object id)
 {
     using (WorldMapDBContext context = new WorldMapDBContext())
     {
         DbSet <UserRoleMapping> table = context.Set <UserRoleMapping>();
         return(table.Find(id));
     }
 }
Exemplo n.º 4
0
 public List <UserRoleMapping> SelectAll()
 {
     using (WorldMapDBContext context = new WorldMapDBContext())
     {
         DbSet <UserRoleMapping> table = context.Set <UserRoleMapping>();
         return(table.ToList());
     }
 }
Exemplo n.º 5
0
 public OverseasTerritoriesData SelectById(object id)
 {
     using (WorldMapDBContext context = new WorldMapDBContext())
     {
         DbSet <OverseasTerritoriesData> table = context.Set <OverseasTerritoriesData>();
         return(table.Find(id));
     }
 }
Exemplo n.º 6
0
 public List <OverseasTerritoriesData> SelectAll()
 {
     using (WorldMapDBContext context = new WorldMapDBContext())
     {
         DbSet <OverseasTerritoriesData> table = context.Set <OverseasTerritoriesData>();
         return(table.ToList());
     }
 }