Skip to content

NH-2058 - IDataBaseSchema.GetPrimaryKeys(...) #791

Open
@nhibernate-bot

Description

@nhibernate-bot

felice Pollano created an issue — 5th January 2010, 5:26:46:

I noticed that the IDataBaseSchema.GetPrimaryKey does not exists ( or better, it is commented out )
Since i'm tryng to create a reverse engineering tool having that would be a great help, as you guess.
I suppose this is probably related to the fact that not all drivers can support such a function, or there is some other reason ? Will it be implemented soon ?
Thanks all,
Felix


Fabio Maulo added a comment — 29th January 2010, 13:52:54:

I don't remember the exact reason because I have implemented and then commented it (ARGGGG a comment there!!!!), probably because not needed in NH.

can you re-study it a little bit ?
The chunk of code of this post
http://fabiomaulo.blogspot.com/2009/06/from-where-start-to-implements.html
can be useful to investigate which Driver is supporting it and in which way (hopefully all implementers are following the same rule).
Thanks.


felice Pollano added a comment — 30th January 2010, 2:22:31:

Hi Fabio,
I probably have the answer, the schema provider supplied by ado.net does not give this information. Another Sad thing is that obtaining the colums bound to a FK is a trouble too. So I decided to implements a strategy ( IForeignKeyCrawler ) and did an implementaion in for MSSQL2005 ( 2008-2000 ? ) . The code for this ( and all the reverse engineering tool ) is now a project under the hbm2net solution in nhcontrib. I would be happy if someone helps me in writing providers for all the major DB NH supports.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions