public ModulRestService(IOptions <MSSQLLogin> MSSQLLogin)
        {
            _MSSQLLogin = MSSQLLogin.Value;
            serverName  = _MSSQLLogin.serverName;
            baseName    = _MSSQLLogin.baseName;
            userName    = _MSSQLLogin.userName;
            password    = _MSSQLLogin.password;

            _ModulPersistentService = new ModulPersistentService(serverName, baseName, userName, password);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            ModulPersistentService modulPersistentService = new ModulPersistentService(_serverName, _baseName, _userName, _pwd);
            Modul modul = new Modul()
            {
                Leiras = "Teszt Leirás"
            };

            GetObjectResponse getObjectResponse = modulPersistentService.SaveWithXml(modul);

            Console.WriteLine(getObjectResponse.id);
        }