Esempio n. 1
0
 public static IDbDataParameter generateParameter(Type.Base type)
 {
     if (type == Type.Base.MySql)
     {
         return(new MySqlParameter());
     }
     else
     {
         return(new SqlParameter());
     }
 }
Esempio n. 2
0
 public PessoaDAL(Type.Base type)
 {
     this.type = type;
     if (type == Type.Base.MySql)
     {
         this.database = new DataBaseHelperMysql("Server=localhost;Database=teste;Uid=root;Pwd=root");
     }
     else
     {
         this.database = new DataBaseHelperSqlServer("Server=DESKTOP-5LSHH6H; Database= testechulo; Integrated Security=SSPI; Uid=auth_windows;");
     }
 }
Esempio n. 3
0
 public static string ConvertBaseToString(Type.Base typeBase)
 {
     return(Enums.GetValue(typeBase));
 }