What about using a params string array in the method parameter to support
single and multiple column names?

So instead of

Map(x => x.BusinessName).ColumnNames(c =>
{
  c.AddColumn("FirmCol1");
  c.AddColumn("FirmCol2");
}

it could be

Map(x => x.BusinessName).ColumnNames("FirmCol1", "FirmCol2");


Paul


On Sat, Mar 28, 2009 at 6:00 PM, Paul Batum <paul.ba...@gmail.com> wrote:

> Hi Lars,
>
> It looks like its been changed to support multiple columns. For now, this
> should work:
>
>   Map(x => x.BusinessName).ColumnNames.Add("FirmName")
>
> I'm not sure if I like this change. James, did you consider achieving this
> with two methods, one that takes a string and another that takes a lambda
> with which you can specify multiple columns? I'm thinking something like:
>
> Map(x => x.BusinessName).ColumnName("FirmName");
>
> and
>
> Map(x => x.BusinessName).ColumnNames(c =>
> {
>   c.AddColumn("FirmCol1");
>   c.AddColumn("FirmCol2");
> }
>
> Thoughts?
>
>
> On Sun, Mar 29, 2009 at 9:39 AM, Lars <larc...@yahoo.com> wrote:
>
>>
>> I see that TheColumnNameIs has been replaced with ColumnName in
>> IIdentityPart, but I can't figure out what it was changed to in
>> PropertyMap.
>>
>> The Map statement is:
>>
>>            Map(x => x.BusinessName).TheColumnNameIs("FirmName");
>>
>> But this no longer works.
>>
>> Thanks, Lars
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to