Exemplo n.º 1
0
        static void Main(string[] args)
        {
            string path = @"D:\test.bdb";

            var connection = new BerkeleyDbExtension.Core.Connection<string, string>(path, new GenericTranslator<string, string>());
            connection.Open();
            connection.Add("Hari", "Prasad");
            connection.Add("Thenshi", "Paidipati");

            Console.WriteLine(connection["Thenshi"]);
            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            string path = @"D:\test.bdb";

            var connection = new BerkeleyDbExtension.Core.Connection <string, string>(path, new GenericTranslator <string, string>());

            connection.Open();
            connection.Add("Hari", "Prasad");
            connection.Add("Thenshi", "Paidipati");

            Console.WriteLine(connection["Thenshi"]);
            Console.ReadKey();
        }