var user = new User()
{
Username = "a",
Password = "b",
};
user.Save();
Console.WriteLine(user.ID) // prints "504"
Console.WriteLine(user.IsLoaded()) // prints "false"
If the ID
property is automatically set on Save()
, I would expect IsLoaded()
to also be set (to true
). Why is it my responsibility to call user.SetIsLoaded(true);
?
(I realize I can just edit ActiveRecord.tt
to get this working, but maybe I just don't understand what IsLoaded()
actually represents.)