Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace projektas.Controllers.DB
- {
- public class MySqlConfig
- {
- private string host = "localhost";
- private string dbName = "build_pc";
- private string userName = "root";
- private string password = "";
- private string connectionString = "";
- public MySqlConfig()
- {
- this.connectionString = String.Format("server={0};user id={1};password={2};persistsecurityinfo=True;database={3};SslMode=none", host, userName, password, dbName);
- }
- public String getConfig()
- {
- return connectionString;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement