Dear readers,
I'm working on a new beta release of EntityPool. The previous releases used only framework 1.1 features and that's practically stoneage. This is the first major update since long time ago. Therefore I decided to call it version 2.0b. Here's a small summary of the changes:
-
2.0 Generics support including dynamic iterators for dramatic speed increase when working on large collections (see below).
-
Configuration of the connection strings using the new <connectionStrings> settings.
-
Configuration of filters through the web.config/app.config instead of hardcoded attributes.
-
Additional interfaces and events:
-
IConstructedCallBack - an interface that is called after your entity has been constructed from storage
-
IPersistedCallBack - an interface that is called after your entity has been persisted.
-
IRelationBuilder - allows you to define a builder that is used to construct a relation property
-
ConverterAttribute - allows you to declaratively define a converter that is used to map Database values to Entities and vice versa.
-
Strangely enough, there are not that many bugfixes. Maybe the code worked as it should?
As said, you now can specify your query filter in the configuration file instead of using an attribute:
[EntityPool.DefineFilter("byCategory", "Category = @b", "@b")]
You now specify:
<entityPool>
....
<types>
<type class="Demo.Objects.Category" assembly="Demo">
<filters>
<defineFilter name="byCategory" where="Category = @b" arguments="@b"/>
<defineFilter name="all" where="1=1 order by Category"/>
</filters>
</type>
</types>
</entityPool>
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5