我有一门课:
public class MyEntity
{
public virtual int Id { get; set; }
public virtual IList<Point> Vectors { get; set; }
}
如何绘制地图
Vectors
在Fluent NHibernate中指定为单个列(作为值)?我在想:
public class Vectors : ISerializable
{
public IList<Point> Vectors { get; set; }
/* Here goes ISerializable implementation */
}
public class MyEntity
{
public virtual int Id { get; set; }
public virtual Vectors Vectors { get; set; }
}
有没有可能绘制地图
像这样,希望流利的NHibernate能初始化
向量
不然我怎么能绘制地图呢
IList<Point>
到一列?我想我必须自己编写序列化/反序列化例程,这不是问题,我只需要告诉FNH使用这些例程。
IUserType
或
ICompositeUserType