Hi,
I've been away for about 5 months and have gotten rusty again
I generated code, looked at the help (Will there be additional tutorials, examples in the future?) but get this error and dont know why:
The entity is out of sync with its data in the database. Refetch this entity before using this in-memory instance
public static void BindUserInformation(System.Guid userID, ref string userName, ref string lastSent, ref string userDescription,ref string userEmail)
{
DataAccessAdapter adapter = new DataAccessAdapter();
UserEntity user = new UserEntity(userID);
adapter.FetchEntity(user);
userName = user.Name;
lastSent = user.LastSent.ToShortDateString();
userDescription = user.Description;
userEmail = user.Email;
}
I'm trying to avoid using the llblgen code directly in my codebehind file so I am populating the required string values for the ascx page.
Can anyone see what is wrong with this code?
Thanks,
John