Advertisement
Guest User

Untitled

a guest
Apr 18th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. namespace DBSync
  2. {
  3.  
  4. class FireBird
  5. {
  6. Config config;
  7. public FireBird(Config config)
  8. {
  9. this.config = config;
  10. }
  11.  
  12. string connectionString =
  13. "User=SYSDBA;" +
  14. "Password=masterkey;" +
  15. "Database=" + config
  16. "DataSource=localhost;" +
  17. "Port=3050;" +
  18. "Dialect=3;" +
  19. "Charset=NONE;" +
  20. "Role=;" +
  21. "Connection lifetime=15;" +
  22. "Pooling=true;" +
  23. "MinPoolSize=0;" +
  24. "MaxPoolSize=50;" +
  25. "Packet Size=8192;" +
  26. "ServerType=0";
  27.  
  28. namespace DBSync
  29. {
  30. public class Config
  31. {
  32. string fbLogin;
  33. string fbPass;
  34. string fbPath;
  35.  
  36. string PGLogin;
  37. string PGPass;
  38.  
  39. string SQLLitePath;
  40.  
  41. public void parseConfig()
  42. {
  43.  
  44. public FireBird(Config config)
  45. {
  46. this.config = config;
  47. this.connectionStroing = "..."+
  48. "..."+this.config+
  49. "..."
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement