예제 #1
0
        public static async System.Threading.Tasks.Task Agregar(LazoModelo oLazo)
        {
            try
            {
                Siaqodb siaqodb = await SiaqodbFactoryExample.GetInstance();

                await siaqodb.StoreObjectAsync(oLazo);

                await siaqodb.FlushAsync();
            }
            catch
            {
                throw;
            }
        }
예제 #2
0
        public static async System.Threading.Tasks.Task Agregar(string nombre, string puerto, string url, int protocol)
        {
            try
            {
                Siaqodb siaqodb = await SiaqodbFactoryExample.GetInstance();

                LazoModelo oLazo = new LazoModelo();
                oLazo.Nombre      = nombre;
                oLazo.IdProtocolo = protocol;
                oLazo.Puerto      = puerto;
                oLazo.Url         = url;
                await siaqodb.StoreObjectAsync(oLazo);

                await siaqodb.FlushAsync();
            }
            catch
            {
                throw;
            }
        }