Example #1
0
 public static Connection Instance()
 {
     if (UniqueInstance == null)
     {
         UniqueInstance = new Connection();
     }
     return UniqueInstance;
 }
Example #2
0
 public Registro()
 {
     //todo model tem acesso a instancia da classe de conexao
     //pelo atributo connection
     this.connection = Connection.Instance();
 }