示例#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();
        }
        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();
        }