abdelwaheb ammar

abdelwaheb ammar

  • 1.3k
  • 457
  • 123.9k

Assignment Property of connectionstring to OleDb Connection

Nov 23 2015 11:31 AM
Good evening everyone, I added a new visual connectionstring in C # property
 
 Nom : propriété.JPG Affichages : 0 Taille : 78,0 Ko
 
 
but I can not find how to assign it to the OleDbConnection object in a new class Connection 
 
 
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;       
  }         
}
 
 
 

Answers (1)