Skip to content

Add LoadProperty method to IRepository, IRepositoryAsync #38

@tonysneed

Description

@tonysneed

This will load a reference property.

IRepository:

void LoadProperty(TEntity item, Expression<Func<TEntity, object>> property);

IRepositoryAsync:

Task LoadProperty(TEntity item, Expression<Func<TEntity, object>> property);

Repository (.NET Core implementation -- will be different for EF 6.x):

public void LoadProperty(PlexApp item, Expression<Func<PlexApp, object>> property) => _context.Entry(item).Reference(property).Load();

public async Task LoadProperty(PlexApp item, Expression<Func<PlexApp, object>> property) => await _context.Entry(item).Reference(property).LoadAsync();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions