コード例 #1
0
        public IEnumerable <Hospital> GetAllHospital()
        {
            AllocatDbEntities db = new AllocatDbEntities();

            db.Configuration.ProxyCreationEnabled = false;
            try
            {
                return(db.Hospital.Where(t => t.IsActive == true));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
 public void CreateSession()
 {
     _connection = new AllocatDbEntities();
 }