It seems missing to me, apossible patch is:
in IOneToOneMapper.cs:

public interface IOneToOneMapper : IEntityPropertyMapper
        {
                void Cascade(Cascade cascadeStyle);
                void Lazy(LazyRelation lazyRelation);
                void Constrained(bool value);
                void PropertyReference(MemberInfo propertyInTheOtherSide);
                void Formula(string formula);
        void ForeignKey(string fkName); // add this !!!!
        }

and in OneToOneMapper.cs
add this:

 public void ForeignKey(string fkName)
        {
            this.oneToOne.foreignkey = fkName;
        }

just guessing by playing with the code.

On Sep 2, 3:12 pm, Alexander Kot <[email protected]> wrote:
> Hello all
> I am playing with subj
>
> ......
> OneToOne(x => x.Master, map => { map.Constrained(true);});
>
> I cannot fined where i can define name for FK constraint if it is used.
> Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to