public void TestDataViewEntityCollection()
        {
            TestEntity affiliate = new TestEntity();
            affiliate.Id = 1000;

            TestEntity affiliate0 = new TestEntity();
            affiliate0.Id = 1001;

            TestEntity affiliate1 = new TestEntity();
            affiliate1.Id = 1002;

            EntityCollection<TestEntity> collection = new EntityCollection<TestEntity>();
            collection.Add(affiliate);
            collection.Add(affiliate0);
            collection.Add(affiliate1);

            foreach (TestEntity aff in collection)
            {
                Console.WriteLine("Affiliate: {0}", aff.Id);
            }

            DataView view = collection.GetDataView(typeof(TestEntity));
            view.ToString();
        }