1 pièce(s) jointe(s)
affectation de propriété connectionstring a l'objet OleDbConnection
bonsoir à tous, j'ajoute un nouveau connectionstring au propriété de visual C#
Pièce jointe 193394
mais je ne trouve pas comment affecter à l'objet OleDbConnection dans un nouveau class connexion
Code:
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;
}
}
} |