Mapping to Existing DB
Is it possible to create an entity based on an existing database table without implementing all of the table's structure? If so does anyone have any examples?
3 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 James Gregory on 10 Sep, 2010 08:19 AM
Yes, just don't create properties for the columns you don't want.
On Thu, Sep 9, 2010 at 7:03 PM, Periop IT <
***@tenderapp.com<tender%***@tenderapp.com>
> wrote:
3 Posted by Periop IT on 10 Sep, 2010 02:14 PM
Then can I map the existing key to the ID property? If so do you have any examples using automapping?
Support Staff 4 Posted by James Gregory on 11 Sep, 2010 09:15 AM
Could you be a little more specific as to what you're trying to do?
On Fri, Sep 10, 2010 at 3:16 PM, Periop IT <
***@tenderapp.com<tender%***@tenderapp.com>
> wrote:
5 Posted by Periop IT on 13 Sep, 2010 02:45 PM
I have an existing database that I am going to be replicating certain tables over to an SQLite database. The primary keys need to match. I know I could have a two columns, one for the NHiberate ID and another for my source PK but I am trying to avoid that.