Produit
Boutique de démonstration
Démonstration
Caractéristiques
Pour les développeurs
Pour les propriétaires de magasins
Industries
Mode
Santé & Beauté
Nourriture & boissons
Automobile
Industriel & Scientifique
Meubles
Commerce électronique B2B
International
Téléchargements
Télécharger nopCommerce
Marketplace
Traductions
Clé de suppression des droits d'auteur
Application Mobile
Web API
Support & Services
Formation
Documentation
Forums communautaires
Services d'assistance premium
Demander un devis
Contactez-nous
Partenaires
Français
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Commencer
Shopping cart
Mon compte
Connexion
S'enregistrer
Accueil
>
Forums
>
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
Nombre de messages:
1
Karma:
5
Inscrit:
13/03/2019
Localisation:
United States
Posté:
Il y a 5 ans
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
Développeur certifié
Nombre de messages:
982
Karma:
8043
Inscrit:
10/02/2017
Localisation:
India
Posté:
Il y a 5 ans
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
Nombre de messages:
13
Karma:
61
Inscrit:
05/03/2019
Localisation:
Georgia
Posté:
Il y a 5 ans
what u mean at service ?
bidzinagoginashvili
Nombre de messages:
13
Karma:
61
Inscrit:
05/03/2019
Localisation:
Georgia
Posté:
Il y a 5 ans
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.
Vous avez encore des questions ou avez besoin d'aide?
.
Services d'assistance premium
.
Bénéficiez d'un support dédié de la part de l'équipe nopCommerce avec une réponse garantie dans les 24 heures.
.
Cours en ligne pour les développeurs
.
Obtenez les compétences pratiques et techniques dont vous avez besoin pour gérer et personnaliser les sites Web nopCommerce.