now i design a object persistence framework. i hope the O/R mapping class is a pure data class. so the class needn't implement any interface and do not care for anything outside.
it mostly like this:

private m_code as string
private m_name as string

public property get code() as string
code = m_code
end property

public property let code(newValue as string)
m_code = newValue
end property

public property get name() as string
name= m_name
end property

public property let name(newValue as string)
m_name = newValue
end property


it's all.
but when i save it in my framework,i must get the dirty flag(poin out user have change the property's value).
in Java, that maybe be resolved by Dynamic Proxy.

how can i do in VB?

is it impossible?

hope to everyone's answer.