public void GetColumnWithAliasEntityView()
        {
            FullNameView entity = new FullNameView();

            if (entity.es.Connection.Name == "SqlCe" ||
                entity.es.Connection.ProviderMetadataKey ==
                "esSqlCe4" ||
                entity.es.Connection.ProviderMetadataKey ==
                "esSqlCe")
            {
                Assert.Ignore("Not tested for SqlCe.");
            }
            else
            {
                entity.Query.es.CountAll      = true;
                entity.Query.es.CountAllAlias = "Count";
                entity.Query.Load();

                Assert.AreEqual(16, Convert.ToInt32(entity.GetColumn("Count")));
            }
        }
示例#2
0
 public void Init2()
 {
     aggTestColl  = new FullNameViewCollection();
     aggTest      = new FullNameView();
     aggTestQuery = new FullNameViewQuery();
 }