IDBConnection.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.WinAPI
  6. {
  7. /// <summary>
  8. /// 数据库连接接口
  9. /// </summary>
  10. public interface IDBConnection
  11. {
  12. /// <summary>
  13. /// 数据库服务器地址(服务器名)
  14. /// </summary>
  15. string DataBaseServer
  16. {
  17. get;
  18. set;
  19. }
  20. /// <summary>
  21. /// 端口
  22. /// </summary>
  23. int DataBasePort
  24. {
  25. get;
  26. set;
  27. }
  28. /// <summary>
  29. /// 用户
  30. /// </summary>
  31. string DataBaseUser
  32. {
  33. get;
  34. set;
  35. }
  36. /// <summary>
  37. /// 密码
  38. /// </summary>
  39. string DataBasePass
  40. {
  41. get;
  42. set;
  43. }
  44. /// <summary>
  45. /// 数据库名
  46. /// </summary>
  47. string DataBaseName
  48. {
  49. get;
  50. set;
  51. }
  52. /// <summary>
  53. /// 获取数据库连接字任串
  54. /// </summary>
  55. string GetDBConnectionString();
  56. }
  57. }