Posts

Showing posts with the label fluent-nhibernate-mapping

Nhibernate added duplicate column on insert

Image
Clash Royale CLAN TAG #URR8PPP Nhibernate added duplicate column on insert I'm using Fluent NHibernate. I have a class called Audit which has ItemID property. Everytime that I want to save anything in that table give me this error. Error message: The column name 'itemid' is specified more than once in the SET clause or column list of an INSERT. A column cannot be assigned more than one value in the same clause. Modify the clause to make sure that a column is updated only once. If this statement updates or inserts columns into a view, column aliasing can conceal the duplication in your code. Classes public class Audit : EntityBase { /********* ** Accessors *********/ /// <summary>When the action was logged.</summary> public virtual DateTime Date { get; set; } /// <summary>The person who triggered the action.</summary> public virtual BasicUser User { get; set; } /// <summary>The name of the related group, used for ...