Hi
I am using v2.0.0 in adapter mode with SQL 2005.
When I try to bring back an entity by the Primary Key value, I am getting nothing but null values - even though the item does exist in the database.
AdminUserEntity oUser = new AdminUserEntity(1);
DataAccessAdapter oAdapter = new DataAccessAdapter();
oAdapter.FetchEntity(oUser);
Is this the correct method?
What I was actually trying to do is see if a user existed based on the given username and password, I tried this:
AdminUserEntity oUser = new AdminUserEntity();
oUser.Email = txtUserName.Text;
oUser.Password = txtPassword.Text;
DataAccessAdapter oAdapter = new DataAccessAdapter();
oAdapter.FetchEntity(oUser);
But this didn't work either.
Any help would be most appreciated.
Many thanks
Darren