[fluent-nhib] Re: Entity specific next_hi values when using HiLo generator

2009-09-16 Thread Sean Gough
I am going to take a stab at a custom generator that does what I need. Wish me luck! On Sep 16, 9:17 am, Paul Batum wrote: > Too bad. If you ever find the appropriate mapping xml for this, let us know > and we'll work out the fluent support. > > On Wed, Sep 16, 2009 at 4:

[fluent-nhib] Re: Entity specific next_hi values when using HiLo generator

2009-09-15 Thread Sean Gough
ot;, string.Format("NextHi_{0}", instance.EntityType.Name), "1000", p => p.AddParam("where", tableClause)); } On Sep 15, 2:17 pm, Sean Gough wrote: > Was worth a try, but unfortunately you still end up with on

[fluent-nhib] Re: Entity specific next_hi values when using HiLo generator

2009-09-15 Thread Sean Gough
"1000", p => p.AddParam("where", "TableName = > 'Customer'")); > > Although because its a convention you'll have to do some string > concatenation because it can't be 'Customer' every time. > > Let me know if it wor

[fluent-nhib] Re: Entity specific next_hi values when using HiLo generator

2009-09-11 Thread Sean Gough
ly worked with hilo but there is a good chance I can assist > you if you can show me the desired mapping xml. > > Paul Batum > > On Sat, Sep 12, 2009 at 2:06 AM, Sean Gough wrote: > > > I can't for the life of me seem to get this to work.  Anyone have any > > idea

[fluent-nhib] Re: Entity specific next_hi values when using HiLo generator

2009-09-11 Thread Sean Gough
I can't for the life of me seem to get this to work. Anyone have any ideas? I don't want to have to resort to mapping files or explicit mapping. On Sep 9, 5:40 pm, Sean Gough wrote: > Thanks, I tried that also.  Those parameters control the table name > and column name for al

[fluent-nhib] Re: Entity specific next_hi values when using HiLo generator

2009-09-09 Thread Sean Gough
out the overloads on the HiLo function, e.g. > >             instance.GeneratedBy.HiLo("Table", "Column", "1000"); > > Barry > > 2009/9/10 Sean Gough > > > > > Hi everyone, > > > I have the following id generatio

[fluent-nhib] Re: Fluent/CastleActiveRecord/VB.net/Tools - Advice Needed

2009-09-09 Thread Sean Gough
Jason Dentler's BASICly Everything blog (http://jasondentler.com/blog) has a great series of posts on using NHibernate and Fluent NHibernate and all his examples are in both VB.Net and C#. For example, if in C# you do this: Map(x => x.Name .Not.Nullable() .WithLengthOf(

[fluent-nhib] Entity specific next_hi values when using HiLo generator

2009-09-09 Thread Sean Gough
Hi everyone, I have the following id generation convention... public class IdGenerationConvention : IIdConvention { public void Apply(IIdentityInstance instance) { instance.GeneratedBy.HiLo("1000"); }