コード例 #1
0
        public static TranslationService GetRepository()
        {
            // Create the underlying database access class instance when the service is instantiated.
            // This assumes a connection string named 'Translation' to exist in the configuration file
            // for the client application.

            //db = new Database("Translation");
            return(service ?? (service = new TranslationService()));
        }
コード例 #2
0
        public static TranslationService GetRepository()
        {
            // Create the underlying database access class instance when the service is instantiated.
            // This assumes a connection string named 'Translation' to exist in the configuration file
            // for the client application.

            //db = new Database("Translation");
            return service ?? (service = new TranslationService());
        }