I am inserting a record into my table, but I want to be able to set my SortOrder fiel开发者_JS百科d on insert to SELECT MAX(SortOrder) + 1 FROM Category
I\'m using the automapping feature of FluentNHibernate and need a property that derives its return value.This property must return an Enum value, 开发者_运维技巧e.g.
I need a Fluent NHibernate mapping that will fulfill the following (if nothing else, I\'ll also take the appropriate NHibernate XML mapping and reverse engineer it).
I am trying to retrieve a list of clients from the server (server using fluentNHibernate). The client object is as follows:
Our customer wants us to use a connectionstring with username = "external" and add schemaName "original" infront of our queries like:
We have audit columns set by triggers. For obscure security reasons predating my tenure and out of my control, we log in with a generic user, and do a \'set session authorization\' to change the user
I have map the entities in .hmb.xml and define attribute for all entity in classes. I have some basic accomplishment and get all the record using below code.
I am new to NHibernate and have just started right now. I have very simple table contain Id(Int primary key and auto incremented), Name(varchar(100)), Description(varchar(100))
The project I\'m working on has a legacy database with lots of information in it that\'s used to alter application behavior. Basically I\'m stuck with something that I have to be super careful about c
Is there a way in Fluent NHibernate (or possibly NHibernate in general) to tell it to generate the primary keys differently?It creates the column name for the key fine, but the index/cons开发者_开发知