Skip to content

Use dynamic proxy objects instead of LazyReference<T> #1

@darxis

Description

@darxis

In the current version, for each Reference you need to define in your model a field of type LazyReference.

Ex:

public class Course
{
   ...

    private LazyReference<Department> _departmentLazy = new LazyReference<Department>();

    public Department Department
    {
        get
        {
            return _departmentLazy.GetValue(this, nameof(Department));
        }
        set
        {
            _departmentLazy.SetValue(value);
        }
    }

    ...

}

Using dynamic Proxy objects would be better, because you don't have to define in your model such fields.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions