I have following class <class name=\"Product\" table=\"Product\"> <id name=\"ID\" /> ... <map name=\"CustomFields\" table=\"CustomFieldView\">
I seem to be having a random issue with nHibernate and inserting records. Insert was working fine, then added a new table, and started receiving 开发者_如何学Cthe error:
I\'m trying to create one entity from 2 tables that are related not by primary key Tables: CREATE TABLE [employees](
We have POCO, something like: public class Person { public Guid PersonID { get; set; } public string FirstName { get; set; }
I have an entity with a property whose column name contains a question mark.How do I map the column name so that an HQL query will correctly generate SQL with the column name wrapped appropriately (i.
I have the following DB schema: Users -Id (uniqueidentifier) -FirstName -LastName -Email AuthProviders -Id (smallint)
I have a class with a property: virtual public string Data { get; set; } example.hbm.xml binds that to:
We have an Order entity and a CreditCard entity. The Order can have 0 or 1 CreditCards. The CreditCard can ha开发者_StackOverflow中文版ve 1 or more Orders
Im\' trying to wrap my head around fluent nHibernate while trying to do this kind of mapping: public class ClassA : Entity
I want to audit my Posts table by preserving whole record changes to a PostRevisions table before Post rows are updated. PostRevision entities should store all the Post entity columns along with a Rev