Ejemplo n.º 1
0
        public static int Update(ServerConfig config)
        {
            string sql = "Update MSCS_Server_Config Set Name = @Name, ClientRootPath=@ClientRootPath, ServerAddress=@ServerAddress, ServerRootPath=@ServerRootPath, SvnPath=@SvnPath Where Id = @Id";

            return(SqlServerHelper.Execute(sql, config));
        }
Ejemplo n.º 2
0
        public static int Insert(ServerConfig config)
        {
            string sql = "INSERT INTO MSCS_Server_Config(Name, ClientRootPath, ServerAddress, ServerRootPath, GroupId, SvnPath) Values(@Name, @ClientRootPath, @ServerAddress, @ServerRootPath, @GroupId, @SvnPath)";

            return(SqlServerHelper.Execute(sql, config));
        }