IdConvention with table name

cremor's Avatar

cremor

07 Sep, 2010 07:30 AM via web

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");
  1. Support Staff 2 Posted by Paul Batum on 26 Sep, 2010 04:16 PM

    Paul Batum's Avatar

    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:

Reply to this discussion

Preview Comments are parsed with Markdown. Help with syntax

Attached Files

    You can attach files up to 10MB

    Five times two is what?