Can I map a property that is Generic type?
ie.
public class MyClass<T>: Entity{
{
public T Value {get;set;}
}
public class MyIntClass: MyClass<int>
{
}
public class MyDoubleClass: MyClass<double>{}
public class MyStringClss: MyClass<string>{}
The problem is I want to have a single table that has Value column of type
nvarchar(max), and all values to be mapped to this column.
so the table would look like:
Table MyClass
Id integer
Value nvarchar(max)
Discriminator integer
How to handle this type of scenario with nhibernate. The value could
instead of T be of type Object.
I am open for suggestions.
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].
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.