Prodotto
Store Demo
Vetrina
Caratteristiche
Per gli sviluppatori
Per i proprietari di negozi
Industrie
Moda
Salute & bellezza
Cibi & bevande
Automazione
Industriale & Scientifico
Mobili
eCommerce B2B
Internazionale
Download
Scarica nopCommerce
Marketplace
Traduzioni
Rimozione del copyright
Applicazione mobile
Web API
Assistenza & Servizi
Formazione
Documentazione
Forum della community
Servizi di supporto premium
Richiedi un preventivo
Contattaci
Partner
Italiano
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Iniziamo
Shopping cart
Profilo
Accesso
Registrati
Home
>
Forum
>
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
Messaggi totali:
1
Karma:
5
Sottoscritto:
13/03/2019
Località:
United States
Inviato:
5 anni tempo fa
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
Sviluppatori certificati
Messaggi totali:
982
Karma:
8043
Sottoscritto:
10/02/2017
Località:
India
Inviato:
5 anni tempo fa
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
Messaggi totali:
13
Karma:
61
Sottoscritto:
05/03/2019
Località:
Georgia
Inviato:
5 anni tempo fa
what u mean at service ?
bidzinagoginashvili
Messaggi totali:
13
Karma:
61
Sottoscritto:
05/03/2019
Località:
Georgia
Inviato:
5 anni tempo fa
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.
Hai ancora qualche domanda o hai bisogno di aiuto?
.
Servizi di supporto premium
.
Ottieni supporto dedicato dal team di nopCommerce con una risposta garantita entro 24 ore.
.
Corso online per sviluppatori
.
Ottieni le competenze pratiche e tecniche necessarie per gestire e personalizzare i siti web realizzati con nopCommerce.