During the use of NHibernate ...
A strange problem that I have collided with after one More updated sessions than The flush () command has not really changed any data ... just wanted to show all, select all, there were 1000 updates in my case - one copy per line !!!
Such behavior occurs when I am using properties as the access type with the custom property euseor. The reason is that I have created a custom property, that I have UIT and Uhort types in my items, so I wanted to put them on the setter (long or difference 32).
The question is how can I disable those updates or why my custom setter might be due to such behavior?
zero set (object target, object value) {if (value gate type) == typef (long)} {Target.GetType (). GetProperty (_propertyName) .set value ((UIIT)) value; }} Thanks in advance,
Update: ------ How can I disable this dirty check before every flush?
It appears that your property provider NHibernate session is messing up dirty tracking. It shows how you can check if any institution is dirty. You should add this code and debug it in the NHibernate source so that you can see why your organizations are considered dirty, I suspect that the type will not match.
Update:
Another approach will be to keep your unit definitions as unsigned, but use the db mapping signature type in the database this fluent Using NHiNnet and SQL Server:
Public class testtunity: unit {public virtual UIT unspecified (get; set;} public virtual download unassignment art {get; Net;}} Public Category TestEntityMap: ClassMap & Test; TestEntity & gt; {Public TestEntityMap () {map (x = & gt; x. Insinited) .CustomSqlType ("bigint"); Map (x = & gt; x UnsignedShort) .CustomSqlType ("int");}}
Comments
Post a Comment