diff Tools/DocGen/Content/Doc/Reflection/ObjectFactory.htm @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Tools/DocGen/Content/Doc/Reflection/ObjectFactory.htm	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,19 @@
+<p class="j">
+The following example shows how to create objects of different types coming from the same data source.
+</p>
+<p class="j">
+Typically, to create an object, BLToolkit calls the <i>TypeAccessor.CreateInstanceEx</i> method.
+First of all, this method verifies if there is an object factory (<i>ObjectFactory</i> property)
+associated with the creating objects type.
+If the property value is not null, it is used to create an object.
+</p>
+<p class="j">
+The <i>ObjectFactory</i> property can be assigned explicitly at any time or 
+by decorating the target class with the <i>ObjectFactory</i> attribute.
+</p>
+
+ObjectFactory.cs
+<% ..\..\..\HowTo\Reflection\ObjectFactory.cs %>
+App.config
+<% Doc\Data\App.config %>
+<a href="..\Data\CreateSql.htm">Create.sql script</a>