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