Esempio n. 1
0
 public IList<Society> GetSocieties()
 {
     using (var db = new MySocietyEntities())
     {
         return db.Societies.ToList();
     }
 }
Esempio n. 2
0
 public DbSet<Society> GetPersons()
 {
     using (var db = new MySocietyEntities())
     {
         return db.Societies;
     }
 }
Esempio n. 3
0
 public void AddWings(Wing objWing)
 {
     using (var db = new MySocietyEntities())
     {
         db.Wings.Add(objWing);
         db.SaveChanges();
     }
 }
Esempio n. 4
0
 public void AddBuildings(Bldg objBldg)
 {
     using (var db = new MySocietyEntities())
     {
         db.Bldgs.Add(objBldg);
         db.SaveChanges();
     }
 }
Esempio n. 5
0
 public IList<Flat> GetFlats(int societyId)
 {
     //var appConfig = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location);
     //string dllConfigData = appConfig.AppSettings.Settings["dllConfigData"].Value;
     //var conn = GetConfig();
     using (var db = new MySocietyEntities())
     {
         return db.Flats.ToList();
     }
 }