相关疑难解决方法(0)

使用Fluent NHibernate/Nhibernate和Automapping进行预先加载

我有一个要求加载一个名为Node的复杂对象...它不是那么复杂...它看起来如下: -

一个节点有一个参考的EntityType具有一对多物业这反过来有一对多PorpertyListValue

public class Node
{
    public virtual int Id
    {
        get;
        set;
    }

    public virtual string Name
    {
        get;
        set;
    }

    public virtual EntityType Etype
    {
        get;
        set;
    }

}


public class EntityType
{
    public virtual int Id
    {
        get;
        set;
    }

    public virtual string Name
    {
        get;
        set;
    }

    public virtual IList<Property> Properties
    {
        get;
        protected set;
    }

    public EntityType()
    {
        Properties = new …
Run Code Online (Sandbox Code Playgroud)

nhibernate fluent-nhibernate automapping eager-loading

23
推荐指数
3
解决办法
2万
查看次数