IdConvention with table name
Is there a way to get the table name of the entity in an IdConvention? I'd like to make something like this:
instance.GeneratedBy.Sequence(<get table name here> + "_SEQ");
2 people watching.
-
New Issue
-
Conversation Started
The Fluent NHibernate staff has started a conversation to resolve this discussion.
-
Close the discussion Close the discussion
Private Permissions
This discussion is private. Only you and Fluent NHibernate support staff can see and reply to it.
Recent Discussions
09 Dec, 2010 09:42 AM | Property formula is not working. | |
08 Dec, 2010 05:24 PM | Setting length on composite -key property | |
02 Dec, 2010 09:33 PM | Setting Component as Unique Key | |
02 Dec, 2010 07:29 PM | Conventions for ICompositeUserTypes and field overrides | |
26 Nov, 2010 01:24 PM | Maping details collection using interface for detail |
22 Nov, 2010 09:59 PM | Mapping a view without a unique id column | |
22 Nov, 2010 09:27 PM | <many-to-one> and access setting | |
18 Nov, 2010 03:32 PM | Control the name of the Primary Key and Unique Constraint Names | |
18 Nov, 2010 03:00 PM | ForeignKeyConstraintName for References | |
14 Nov, 2010 12:40 PM | SQLite Versioning Configuration Question |
Support Staff 2 Posted by Paul Batum on 26 Sep, 2010 04:16 PM
Unfortunately no. You can get the owning Type for the Id column, using
instance.Type, but thats about it. A workaround would be to make some sort
of static method that can tell you the table name for a given type and call
that from the convention.
On Tue, Sep 7, 2010 at 2:32 AM, cremor <
***@tenderapp.com<tender%***@tenderapp.com>
> wrote: