public AutoGeneratedKey(Object entity, dynamic autoGeneratedKey) {
Entity = entity;
PropertyName = autoGeneratedKey.propertyName;
AutoGeneratedKeyType = (AutoGeneratedKeyType)Enum.Parse(typeof(AutoGeneratedKeyType), (String)autoGeneratedKey.autoGeneratedKeyType);
// TempValue and RealValue will be set later. - TempValue during Add, RealValue after save completes.
}