Hi,
The idea is like this:
public class MyClass
{
...
[Localizaed]
public string Description {get;private set;}
}
In interceptor, when loading i would load the Description from the
LocalizationTable for the current language and populate the Description
property. That is why I don't need the column in the DB.
On Tuesday, October 27, 2015 at 5:16:55 PM UTC+1, Gunnar Liljas wrote:
>
> No, it's not possible. Why do something in an interceptor, if it's not a
> persisted column?
>
> 2015-10-27 15:38 GMT+01:00 Luka <[email protected] <javascript:>>:
>
>> Hi
>> I am using Mapping By Convention/Code.
>> I have set a property to be NotPersistent.
>>
>> But because of this i don't get this property in nhibernate interceptor.
>>
>> What I am doing is some localization properties. I am intercepting OnLoad
>> method and populating values myself for the localized property. But when I
>> set the property to not be mapped (I don't want it to create database
>> column for it, because it should exist only in memory not in db), i am not
>> getting this property in the properties collection of the OnLoad method of
>> the interceptor.
>>
>> Is this even possible??
>>
>> thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/nhusers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.