bonsoir à tous, j'ajoute un nouveau connectionstring au propriété de visual C#
mais je ne trouve pas comment affecter à l'objet OleDbConnection dans un nouveau class connexion
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; namespace GestionReglement.Modele { class connexion { private OleDbConnection con = null; public OleDbConnection getconnexion() { con = new OleDbConnection(); return con; } } }
Partager