The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Accessing Foriegn Keys in MyGeneration

Last post 05-24-2008, 12:10 AM by TrevorW. 6 replies.
Sort Posts: Previous Next
  •  05-23-2008, 4:04 PM 9433

    Accessing Foriegn Keys in MyGeneration

    I am creating some custom templates and wanted to how do I get to the definition of foreign keys within MyGeneration (I.e. when I am looping through the tables, how can I get to the foreign keys definitions for that table?)

    TIA

    Trevor

  •  05-23-2008, 4:12 PM 9434 in reply to 9433

    Re: Accessing Foriegn Keys in MyGeneration

    Hi Trevor

    Take a look in the "Example" templates and you should see 3 templates, Table, FK, and Column - that should give you everything you need but if not let me know and I'll post something more specific

    Cheers

    Martin

  •  05-23-2008, 4:21 PM 9436 in reply to 9433

    Re: Accessing Foriegn Keys in MyGeneration

    Hi

    I've sent you a PM with some template code in it - don't want to post the code on the forum as I'm not 100% sure whether the ES guys want template code posting - hope it helps

    Cheers

    Martin

  •  05-23-2008, 6:07 PM 9437 in reply to 9436

    Re: Accessing Foriegn Keys in MyGeneration

    What assemly is the Dnp.Utils.TableRelation namespace located?

    The one thing that really makes it hard in MyGeneration is the lack of intellisense where I need it. :(

    If I could look at the object browser for the namespace, I think it would make it a lot easier for me.

     

  •  05-23-2008, 6:13 PM 9438 in reply to 9437

    Re: Accessing Foriegn Keys in MyGeneration

    Never mind, I found what I needed in the MyGeneration docs.

    Thanks anyway.

  •  05-23-2008, 7:12 PM 9440 in reply to 9438

    Re: Accessing Foriegn Keys in MyGeneration

    ES2008 doesn't really use MyMeta or Dnp.Utils, we use EntitySpaces.MetadataEngine.dll which contains Dnp.Utils. Just an FYI .... If you write templates using our EntitySpaces.MetadataEngine.dll they can be easily made to run under CodeSmith which does have intellisense.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  05-24-2008, 12:10 AM 9443 in reply to 9440

    Re: Accessing Foriegn Keys in MyGeneration

    Okay, I have 2008 Beta 4. Can you tell me where I can find the docs for the MetadataEngine? There is Core, Loader, Interfaces, and Web. I don't see the MetadataEngine. I could swear there was a separate help file in the beta 3.

    Any way to get a copy?

View as RSS news feed in XML