Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace One_Server.Database
- {
- public class ConnectionString
- {
- #region Properties
- public string Server { get; set; }
- public int Port { get; set; }
- public string Schema { get; set; }
- public string User { get; set; }
- public string Password { get; set; }
- #endregion
- #region Constructors
- public ConnectionString() { }
- public ConnectionString(string server, string schema, string user, string password)
- {
- Server = server;
- Port = 3306;
- Schema = schema;
- User = user;
- Password = password;
- }
- public ConnectionString(string server, int port, string schema, string user, string password)
- {
- Server = server;
- Port = port;
- Schema = schema;
- User = user;
- Password = password;
- }
- #endregion
- #region Overrides
- public override string ToString()
- {
- return String.Format("Server={0};Port={1};Database={2};Uid={3};Pwd={4};",
- Server,
- Port,
- Schema,
- User,
- Password);
- }
- #endregion
- }
- }
Add Comment
Please, Sign In to add comment