Mapping HiLo

10 views
Skip to first unread message

Carlos Cocom

unread,
Feb 23, 2011, 2:40:37 PM2/23/11
to ConfORM
Hello, people

I am practicing in confORM and i want generate the mappings using
pattern hilo how poid. i want use one single table for this,

this is the initial configuration

orm.Patterns.PoidStrategies.Add(new HighLowPoidPattern(new { max_lo
= 100, where = "Entity = ''" } ));

but how can i do variable the entity name??

Fabio Maulo

unread,
Feb 24, 2011, 4:07:42 AM2/24/11
to codec...@googlegroups.com
You can do it with a custom IPatternValueGetter<MemberInfo, IPersistentIdStrategy> but I'm going to implements it in the core, then I'll implements a UsageExample.
--
Fabio Maulo

Fabio Maulo

unread,
Feb 24, 2011, 4:31:14 AM2/24/11
to codec...@googlegroups.com
Done

You have to use the trunk or you can implements YourHighLowPoidPattern copying from here:

Using the IDomainInspector (ObjectRelationalMapper) you can even create an instance of a SimpleAuxiliaryDatabaseObject (NH class) with the SQL script to populate the table with the needed records.... ok.... ok.... if I found time in this strange day I will implement the example.
--
Fabio Maulo

Fabio Maulo

unread,
Feb 24, 2011, 8:56:30 AM2/24/11
to codec...@googlegroups.com

Charlie

unread,
Feb 24, 2011, 10:16:47 AM2/24/11
to codec...@googlegroups.com
thanks fabio, 

did you ever sleep?

2011/2/24 Fabio Maulo <fabio...@gmail.com>

Fabio Maulo

unread,
Feb 24, 2011, 10:25:55 AM2/24/11
to codec...@googlegroups.com
sometimes
--
Fabio Maulo

Reply all
Reply to author
Forward
0 new messages