c***@gmail.com
2017-12-14 07:37:45 UTC
Thanks first!
I'm new to NHibernate. I use version 4.X.
I have a base entity class like this:
public abstract class EntityBase<TId>
{
public TId Id { get; set; }
// omit other method members
}
then, I have a derived class like this:
public class Product:EntityBase<int>
{
public string Name { get; set; }
public decimal Price { get; set }
// omit other members
}
Now, could anybody teach me how to map Id, Name, Price these three
properties into one data table like this:
-------------------------------------
Id | Name | Price
-------------------------------------
Thanks anyway!
I'm new to NHibernate. I use version 4.X.
I have a base entity class like this:
public abstract class EntityBase<TId>
{
public TId Id { get; set; }
// omit other method members
}
then, I have a derived class like this:
public class Product:EntityBase<int>
{
public string Name { get; set; }
public decimal Price { get; set }
// omit other members
}
Now, could anybody teach me how to map Id, Name, Price these three
properties into one data table like this:
-------------------------------------
Id | Name | Price
-------------------------------------
Thanks anyway!
--
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 nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://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 nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.