public Handler(IRepository repo, RestAreaOptions <TContext> restAreaOptions, EntityOptions <TEntity, TId, TModel> options, ILogger logger) { this.restAreaOptions = restAreaOptions; this.options = options; this.logger = logger; this.repo = repo; }
public RestAreaOptions <TUnitOfWork> Build() { var opts = new RestAreaOptions <TUnitOfWork>(model, urlPrefix, entityOptions, mapperConfig); SetRestArea(opts.Entities, opts); return(opts); }
private void SetRestArea(IEnumerable <EntityOptions> entities, RestAreaOptions opts) { foreach (var entity in entities) { entity.RestArea = opts; SetRestArea(entity.Children, opts); } }