Produkt
Shop Demo
Showcase
Funktionen
Warum für Entwickler
Warum für Shopbesitzer
Industrie
Mode
Gesundheit & Beauty
Lebensmittel & Getränke
Automobilindustrie
Industriell & Wissenschaftlich
Möbel
B2B eCommerce
International
Downloads
Laden Sie nopCommerce herunter
Marktplatz
Übersetzungen
Schlüssel zum Entfernen des Urheberrechts
Mobile App
Web API
Unterstützung & Services
Schulung
Dokumentation
Community-Foren
Premium-Supportdienste
Angebot anfordern
Kontakt
Partner
Deutsch
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Jetzt starten
Shopping cart
Mein Konto
Anmelden
Registrierung
Home
>
Foren
>
General
>
Development
>
How to access current database with easy way in plugin?
How to access current database with easy way in plugin?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Xxxzzz
Anzahl der Beiträge:
1
Karma:
5
Beigetreten:
13.03.2019
Herkunft:
United States
Versendet:
5 Jahre weitere
Hello everyone.I want to acces current database(database that was created while nopcommerce instalatio n) in my plugin's controller.Is there an easy way to do this.For example Datacontext db =new Datacontext(); or something like this?
smi10
MVP
Zertifizierter Entwickler
Anzahl der Beiträge:
982
Karma:
8043
Beigetreten:
10.02.2017
Herkunft:
India
Versendet:
5 Jahre weitere
Hello,
There are lots of way to access it.
But best is to follow nopcommerce structure.
You have to create service for that and this service you must register at dependency register file of your plugin.
That's way you have to access db.
Hope you will understand..!!
bidzinagoginashvili
Anzahl der Beiträge:
13
Karma:
61
Beigetreten:
05.03.2019
Herkunft:
Georgia
Versendet:
5 Jahre weitere
what u mean at service ?
bidzinagoginashvili
Anzahl der Beiträge:
13
Karma:
61
Beigetreten:
05.03.2019
Herkunft:
Georgia
Versendet:
5 Jahre weitere
what is the service for current database,that i should register?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Haben Sie noch Fragen oder brauchen Sie Hilfe?
.
Premium-Supportdienste
.
Erhalten Sie dedizierten Support vom nopCommerce-Team mit einer garantierten Antwort innerhalb von 24 Stunden.
.
Online-Kurs für Entwickler
.
Holen Sie sich die praktischen und technischen Fähigkeiten, die Sie benötigen, um nopCommerce Webseiten zu betreiben und anzupassen.