コード例 #1
0
ファイル: CacheLogic.cs プロジェクト: goldenauge/framework
        public override List <T> RequestByBackReference <R>(IRetriever retriever, Expression <Func <T, Lite <R>?> > backReference, Lite <R> lite)
        {
            // throw new InvalidOperationException(); /*CSBUG https://github.com/dotnet/roslyn/issues/33276*/
            var dic = this.cachedTable.GetBackReferenceDictionary(backReference);

            var ids = dic.TryGetC(lite.Id).EmptyIfNull();

            return(ids.Select(id => retriever.Complete <T>(id, e => this.Complete(e, retriever)) !).ToList());
        }
コード例 #2
0
 public T Complete <T>(PrimaryKey?id, Action <T> complete) where T : Entity
 {
     return(Parent.Complete <T>(id, complete));
 }