DoFinalConstruction?

Hey guys,

Can someone shed some light one what DoFinalConstruction does? Any chance that we can make that method virtual? :) Would be very handy for doing setup construction on entity objects (putting in default properties, etc...)

Thanks!

Mike

[269 byte] By [Mike-EEE] at [2008-2-8]
# 1

Wow. I *just* finished a blog entry on this topic. Please have a look: "The Joy of a Custom Built Object" or "What the heck is DoFinalConstruction()?"

- Danny

DanielSimmons-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 2
Wow... very nice. Great post! Thanks. :)
Mike-EEE at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 3

As an aside... is there a reason this method is not marked "virtual?" Maybe I'm missing something, but I thought methods that aren't marked virtual aren't supposed to be overriden? That is, it's intention is not to be overriden. Is this just an oversight or the actual intended design?

Thanks!

Mike-EEE at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 4
There are more ways to solve this problem. In Neo we introduced the
LifecycleCreate attribute which marks a method to be called after the
creation of an entity object.
PaulGielens at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 5
NEO? :)
Mike-EEE at 2007-8-31 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...

Visual Studio Orcas

Site Classified