예제 #1
0
        public LinkRepository(string linkConnectionString)
        {
            if (linkConnectionString != null)
                _dataEngine = new DataQuerySqlServer(linkConnectionString);

            if (_dataEngine == null) throw new Exception("Link Database query engine is null");

            if (!_dataEngine.DatabaseConnected) throw new Exception("Link Database query engine is not connected");
        }
        public AddressRepository(string contactConnectionString)
        {
            if (contactConnectionString != null)
                _dataEngine = new DataQuerySqlServer(contactConnectionString);

            if (_dataEngine == null) throw new Exception("Contact Database query engine is null");

            if (!_dataEngine.DatabaseConnected) throw new Exception("Contact Database query engine is not connected");
        }
        public MemberRepository(string memberConnectionString)
        {
            if (memberConnectionString != null)
                _dataEngine = new DataQuerySqlServer(memberConnectionString);

            if (_dataEngine == null) throw new Exception("Member Database query engine is null");

            if (!_dataEngine.DatabaseConnected) throw new Exception("Member Database query engine is not connected");
        }
        public CustomerRepository(string cfgConnectionString)
        {
            if (cfgConnectionString != null)
                _dataEngine = new DataQuerySqlServer(cfgConnectionString);

            if (_dataEngine == null) throw new Exception("Cfg Database query engine is null");

            if (!_dataEngine.DatabaseConnected) throw new Exception("Cfg Database query engine is not connected");
        }
        public CourtBookingSheetRepository(string bookingConnectionString)
        {
            if (bookingConnectionString != null)
                _dataEngine = new DataQuerySqlServer(bookingConnectionString);

            if (_dataEngine == null) throw new Exception("Booking Database query engine is null");

            if (!_dataEngine.DatabaseConnected) throw new Exception("Booking Database query engine is not connected");
        }
        public FacilityRepository(string cfgConnectionString)
        {
            if (cfgConnectionString != null)
            {
                _dataEngine = new DataQuerySqlServer(cfgConnectionString);
            }

            if (_dataEngine == null)
            {
                throw new Exception("Cfg Database query engine is null");
            }

            if (!_dataEngine.DatabaseConnected)
            {
                throw new Exception("Cfg Database query engine is not connected");
            }
        }
예제 #7
0
        public BookingRecordRepository(string bookingConnectionString)
        {
            if (bookingConnectionString != null)
            {
                _dataEngine = new DataQuerySqlServer(bookingConnectionString);
            }

            if (_dataEngine == null)
            {
                throw new Exception("Booking Database query engine is null");
            }

            if (!_dataEngine.DatabaseConnected)
            {
                throw new Exception("Booking Database query engine is not connected");
            }
        }
        public AddressRepository(string contactConnectionString)
        {
            if (contactConnectionString != null)
            {
                _dataEngine = new DataQuerySqlServer(contactConnectionString);
            }

            if (_dataEngine == null)
            {
                throw new Exception("Contact Database query engine is null");
            }

            if (!_dataEngine.DatabaseConnected)
            {
                throw new Exception("Contact Database query engine is not connected");
            }
        }
예제 #9
0
        public LinkRepository(string linkConnectionString)
        {
            if (linkConnectionString != null)
            {
                _dataEngine = new DataQuerySqlServer(linkConnectionString);
            }

            if (_dataEngine == null)
            {
                throw new Exception("Link Database query engine is null");
            }

            if (!_dataEngine.DatabaseConnected)
            {
                throw new Exception("Link Database query engine is not connected");
            }
        }
        public MemberRepository(string memberConnectionString)
        {
            if (memberConnectionString != null)
            {
                _dataEngine = new DataQuerySqlServer(memberConnectionString);
            }

            if (_dataEngine == null)
            {
                throw new Exception("Member Database query engine is null");
            }

            if (!_dataEngine.DatabaseConnected)
            {
                throw new Exception("Member Database query engine is not connected");
            }
        }