Exemplo n.º 1
0
        public void GenerateEntity()
        {
            AAContext context     = new AAContext();
            string    notExpected = string.Empty;
            var       user        = new TestUser();
            string    a           = "";
            var       users       = context.GetList <TestUser>("select u.Active,u.Username,u.Password,RoleName=r.Name from [User]  u inner join [Role] r on r.ID=u.RoleID");

            //ctx.
            //context.GetColumn( "select u.Username,u.Password,r.Name from [User] u inner join [Role] r on r.ID=u.RoleID" );
            foreach (var u in users)
            {
                a += u.Username + ":" + u.RoleName + ":" + u.Active + ",";
            }

            Assert.AreNotEqual(notExpected, a);
        }