Esempio n. 1
0
        private static void RoundTrip<T>(string tableName, T[] array)
        {
            XDatabaseContext context = new XDatabaseContext();

            context.StreamProvider.Delete($"Table\\{tableName}");

            IXTable expected = context
                .FromArrays(array.Length)
                .WithColumn("Column", array);

            expected.Save(tableName, context);

            using (IXTable actual = context.Load(tableName))
            {
                TableTestHarness.AssertAreEqual(expected, actual, 1024);
            }
        }